File tree Expand file tree Collapse file tree
tests/stubtest_allowlists Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ class ZoneInfo(tzinfo):
1717 @classmethod
1818 def no_cache (cls , key : str ) -> Self : ...
1919 @classmethod
20- def from_file (cls , __fobj : _IOBytes , key : str | None = ... ) -> Self : ...
20+ def from_file (cls , __fobj : _IOBytes , key : str | None = None ) -> Self : ...
2121 @classmethod
22- def clear_cache (cls , * , only_keys : Iterable [str ] | None = ... ) -> None : ...
22+ def clear_cache (cls , * , only_keys : Iterable [str ] | None = None ) -> None : ...
2323 def tzname (self , __dt : datetime | None ) -> str | None : ...
2424 def utcoffset (self , __dt : datetime | None ) -> timedelta | None : ...
2525 def dst (self , __dt : datetime | None ) -> timedelta | None : ...
@@ -30,7 +30,7 @@ class ZoneInfo(tzinfo):
3030def reset_tzpath (to : Sequence [StrPath ] | None = None ) -> None : ...
3131def available_timezones () -> set [str ]: ...
3232
33- TZPATH : Sequence [str ]
33+ TZPATH : tuple [str , ... ]
3434
3535class ZoneInfoNotFoundError (KeyError ): ...
3636class InvalidTZPathWarning (RuntimeWarning ): ...
Original file line number Diff line number Diff line change @@ -188,7 +188,6 @@ zipfile.Path.is_symlink
188188zipfile.Path.match
189189zipfile.Path.relative_to
190190zipfile.Path.rglob
191- zoneinfo.ZoneInfo.from_file
192191
193192# Errors that also existed on Python 3.11
194193_collections_abc.AsyncGenerator.ag_await
@@ -259,6 +258,9 @@ posixpath.join
259258ntpath.join
260259os.path.join
261260
261+ # Pos-only parameters had different "names" in different Python versions:
262+ zoneinfo.ZoneInfo.from_file
263+
262264# ==========
263265# Allowlist entries that cannot or should not be fixed
264266# ==========
You can’t perform that action at this time.
0 commit comments