File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -77,11 +77,7 @@ pathsep: LiteralString
77
77
defpath : LiteralString
78
78
devnull : LiteralString
79
79
80
- # Overloads are necessary to work around python/mypy#3644.
81
- @overload
82
- def abspath (path : PathLike [AnyStr ]) -> AnyStr : ...
83
- @overload
84
- def abspath (path : AnyStr ) -> AnyStr : ...
80
+ def abspath (path : PathLike [AnyStr ] | AnyStr ) -> AnyStr : ...
85
81
@overload
86
82
def basename (p : PathLike [AnyStr ]) -> AnyStr : ...
87
83
@overload
@@ -90,14 +86,8 @@ def basename(p: AnyOrLiteralStr) -> AnyOrLiteralStr: ...
90
86
def dirname (p : PathLike [AnyStr ]) -> AnyStr : ...
91
87
@overload
92
88
def dirname (p : AnyOrLiteralStr ) -> AnyOrLiteralStr : ...
93
- @overload
94
- def expanduser (path : PathLike [AnyStr ]) -> AnyStr : ...
95
- @overload
96
- def expanduser (path : AnyStr ) -> AnyStr : ...
97
- @overload
98
- def expandvars (path : PathLike [AnyStr ]) -> AnyStr : ...
99
- @overload
100
- def expandvars (path : AnyStr ) -> AnyStr : ...
89
+ def expanduser (path : PathLike [AnyStr ] | AnyStr ) -> AnyStr : ...
90
+ def expandvars (path : PathLike [AnyStr ] | AnyStr ) -> AnyStr : ...
101
91
@overload
102
92
def normcase (s : PathLike [AnyStr ]) -> AnyStr : ...
103
93
@overload
You can’t perform that action at this time.
0 commit comments