8000 Merge pull request #26867 from jorenham/fix-__dir__-annotations · numpy/numpy@d583c54 · GitHub
[go: up one dir, main page]

Skip to content

Commit d583c54

Browse files
authored
Merge pull request #26867 from jorenham/fix-__dir__-annotations
TYP,BUG: fix ``numpy.__dir__`` annotations
2 parents e2fd988 + a8a42f6 commit d583c54

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)
0