We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b1f5db commit 1d4c73dCopy full SHA for 1d4c73d
1 file changed
stdlib/2/glob.pyi
@@ -1,8 +1,6 @@
1
-from typing import List, Iterator, Union
+from typing import List, Iterator, Union, AnyStr
2
3
-_string = Union[str, unicode]
4
-
5
-def glob(pathname: _string) -> List[_string]: ...
6
-def iglob(pathname: _string) -> Iterator[_string]: ...
7
-def glob1(dirname: _string, pattern: _string) -> List[_string]: ...
8
-def glob0(dirname: _string, basename: _string) -> List[_string]: ...
+def glob(pathname: AnyStr) -> List[AnyStr]: ...
+def iglob(pathname: AnyStr) -> Iterator[AnyStr]: ...
+def glob1(dirname: Union[str, unicode], pattern: AnyStr) -> List[AnyStr]: ...
+def glob0(dirname: Union[str, unicode], basename: AnyStr) -> List[AnyStr]: ...
0 commit comments