File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
import sys
2
- from _typeshed import Self
2
+ from _typeshed import Self , StrOrBytesPath
3
3
from types import TracebackType
4
4
from typing import (
5
5
IO ,
@@ -124,3 +124,13 @@ elif sys.version_info >= (3, 7):
124
124
def __init__ (self : nullcontext [_T ], enter_result : _T ) -> None : ...
125
125
def __enter__ (self ) -> _T : ...
126
126
def __exit__ (self , * exctype : Any ) -> None : ...
127
+
128
+ if sys .version_info >= (3 , 11 ):
129
+ _FdOrAnyPath = int | StrOrBytesPath
130
+ _T_fd_or_any_path = TypeVar ("_T_fd_or_any_path" , bound = _FdOrAnyPath )
131
+ class chdir (AbstractContextManager [_T_fd_or_any_path ]):
132
+ path : _T_fd_or_any_path
133
+ _old_cwd : list [str ]
134
+ def __init__ (self , path : _FdOrAnyPath ) -> None : ...
135
+ def __enter__ (self ) -> None : ...
136
+ def __exit__ (self , * excinfo : Any ) -> None : ...
You can’t perform that action at this time.
0 commit comments