File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -132,8 +132,9 @@ class TarFile:
132132 errorlevel : Literal [0 , 1 , 2 ]
133133 offset : int # undocumented
134134 extraction_filter : _FilterFunction | None
135- if sys .version_info >= (3 , 15 ):
135+ if sys .version_info >= (3 , 13 ):
136136 stream : bool
137+ if sys .version_info >= (3 , 15 ):
137138 def __init__ (
138139 self ,
139140 name : StrOrBytesPath | None = None ,
@@ -153,7 +154,6 @@ class TarFile:
153154 mtime : float | None = None ,
154155 ) -> None : ...
155156 elif sys .version_info >= (3 , 13 ):
156- stream : bool
157157 def __init__ (
158158 self ,
159159 name : StrOrBytesPath | None = None ,
Original file line number Diff line number Diff line change @@ -153,9 +153,7 @@ class CodeType:
153153 def co_name (self ) -> str : ...
154154 @property
155155 def co_firstlineno (self ) -> int : ...
156- if sys .version_info >= (3 , 15 ):
157- pass
158- else :
156+ if sys .version_info < (3 , 15 ):
159157 @property
160158 @deprecated ("Deprecated since Python 3.10; will be removed in Python 3.15. Use `CodeType.co_lines()` instead." )
161159 def co_lnotab (self ) -> bytes : ...
You can’t perform that action at this time.
0 commit comments