Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/nns/_native.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import importlib
import importlib.util
from typing import Any, cast
from typing import Any

_NNSCORE_SPEC = importlib.util.find_spec("nns._nnscore")

Expand All @@ -12,11 +12,6 @@
_nnscore = None


def nnscore() -> Any | None:
"""Return the optional private NNS-core extension module when available."""
return cast(Any | None, _nnscore)


def native_fn(name: str) -> Any | None:
"""Return a callable from the NNS-core extension, or None when unavailable."""
if _nnscore is None:
Expand Down
Loading