File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,22 @@ import sys
2
2
from _typeshed import StrOrBytesPath
3
3
from collections .abc import Iterator , Sequence
4
4
from typing import AnyStr
5
+ from typing_extensions import deprecated
5
6
6
7
__all__ = ["escape" , "glob" , "iglob" ]
7
8
8
9
if sys .version_info >= (3 , 13 ):
9
10
__all__ += ["translate" ]
10
11
11
- def glob0 (dirname : AnyStr , pattern : AnyStr ) -> list [AnyStr ]: ...
12
- def glob1 (dirname : AnyStr , pattern : AnyStr ) -> list [AnyStr ]: ...
12
+ if sys .version_info >= (3 , 10 ):
13
+ @deprecated ("Will be removed in Python 3.15; Use `glob.glob` and pass *root_dir* argument instead." )
14
+ def glob0 (dirname : AnyStr , pattern : AnyStr ) -> list [AnyStr ]: ...
15
+ @deprecated ("Will be removed in Python 3.15; Use `glob.glob` and pass *root_dir* argument instead." )
16
+ def glob1 (dirname : AnyStr , pattern : AnyStr ) -> list [AnyStr ]: ...
17
+
18
+ else :
19
+ def glob0 (dirname : AnyStr , pattern : AnyStr ) -> list [AnyStr ]: ...
20
+ def glob1 (dirname : AnyStr , pattern : AnyStr ) -> list [AnyStr ]: ...
13
21
14
22
if sys .version_info >= (3 , 11 ):
15
23
def glob (
You can’t perform that action at this time.
0 commit comments