Skip to content

Commit a8a42f6

Browse files
committed
TYP,BUG: fix numpy.__dir__ annotations
1 parent ca522d1 commit a8a42f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

numpy/__init__.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,8 @@ class _SupportsWrite(Protocol[_AnyStr_contra]):
625625
def write(self, s: _AnyStr_contra, /) -> object: ...
626626

627627
__all__: list[str]
628-
__dir__: list[str]
628+
def __dir__() -> Sequence[str]: ...
629+
629630
__version__: str
630631
__array_api_version__: str
631632
test: PytestTester

0 commit comments

Comments
 (0)