Skip to content

Commit 63af572

Browse files
committed
chore: wip
1 parent 1d7b4d1 commit 63af572

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/array_api/cli/_main.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import ast
44
import runpy
5+
import warnings
56
from collections import defaultdict
67
from collections.abc import Iterable, Sequence
78
from copy import deepcopy
@@ -204,13 +205,10 @@ def generate(body_module: dict[str, list[ast.stmt]], out_path: Path) -> None:
204205
elif isinstance(b, ast.ClassDef):
205206
data = _class_to_protocol(b, typevars)
206207
out.body.append(data.stmt)
207-
# module_attributes[submodule].append(
208-
# ModuleAttributes(b.name, data.name, None, data.typevars_used)
209-
# )
210208
elif isinstance(b, ast.Expr):
211209
pass
212210
else:
213-
print(f"Skipping {submodule} {b} \n\n")
211+
warnings.warn(f"Skipping {submodule} {b}", stacklevel=2)
214212

215213
# Create Protocols for fft and linalg
216214
submodules: list[ModuleAttributes] = []

0 commit comments

Comments
 (0)