Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
build-backend = "scikit_build_core.build"
requires = [
"scikit-build-core >=0.9.3",
"nanobind >=2.7",
"nanobind >=2.15",
"pcpp",

# stubgen uses @override :/
Expand Down
4 changes: 1 addition & 3 deletions stubgen/stubgen.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import argparse
import importlib
import os
import sys
from collections.abc import Callable
from pathlib import Path
Expand All @@ -27,7 +26,7 @@ def put_function(self,
if (name and fn_module
and fn_module != self.module.__name__
and parent is not None):
self.import_object(fn_module, name=None)
self.bind(fn_module, name=None)
rhs = f"{fn_module}.{fn.__qualname__}"
if type(fn) is staticmethod:
rhs = f"staticmethod({rhs})"
Expand Down Expand Up @@ -61,7 +60,6 @@ def main():

sys.path.extend(cast("list[str]", args.python_path or []))

os.environ["ISLPY_NO_DOWNCAST_DEPRECATION"] = "1"
mod = importlib.import_module(cast("str", args.module))
for fname in cast("list[str]", args.exec or []):
execdict = {"__name__": "islpy._monkeypatch"}
Expand Down
Loading