File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-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,15 @@ 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
+
129
+ if sys .version_info >= (3 , 11 ):
130
+ _FdOrAnyPath = int | StrOrBytesPath
131
+ _T_fd_or_any_path = TypeVar ("_T_fd_or_any_path" , bound = _FdOrAnyPath )
132
+
133
+ class chdir (AbstractContextManager [_T_fd_or_any_path ]):
134
+ path : _T_fd_or_any_path
135
+ _old_cwd : list [str ]
136
+ def __init__ (self , path : _FdOrAnyPath ) -> None : ...
137
+ def __enter__ (self ) -> None : ...
138
+ def __exit__ (self , * excinfo : Any ) -> None : ...
You can’t perform that action at this time.
0 commit comments