File tree 2 files changed +8
-2
lines changed 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,10 @@ elif sys.version_info >= (3, 5):
100
100
# So, fall back to Any
101
101
def commonprefix (list : Sequence [_PathType ]) -> Any : ...
102
102
103
- def exists (path : _PathType ) -> bool : ...
103
+ if sys .version_info >= (3 , 3 ):
104
+ def exists (path : Union [_PathType , int ]) -> bool : ...
105
+ else :
106
+ def exists (path : _PathType ) -> bool : ...
104
107
def lexists (path : _PathType ) -> bool : ...
105
108
106
109
# These return float if os.stat_float_times() == True,
Original file line number Diff line number Diff line change @@ -100,7 +100,10 @@ elif sys.version_info >= (3, 5):
100
100
# So, fall back to Any
101
101
def commonprefix (list : Sequence [_PathType ]) -> Any : ...
102
102
103
- def exists (path : _PathType ) -> bool : ...
103
+ if sys .version_info >= (3 , 3 ):
104
+ def exists (path : Union [_PathType , int ]) -> bool : ...
105
+ else :
106
+ def exists (path : _PathType ) -> bool : ...
104
107
def lexists (path : _PathType ) -> bool : ...
105
108
106
109
# These return float if os.stat_float_times() == True,
You can’t perform that action at this time.
0 commit comments