diff --git a/stdlib/gzip.pyi b/stdlib/gzip.pyi index 1ec8b4b8c..d001849e6 100644 --- a/stdlib/gzip.pyi +++ b/stdlib/gzip.pyi @@ -139,8 +139,10 @@ class GzipFile(_compression.BaseStream): fileobj: _ReadableFileobj | _WritableFileobj | None = None, mtime: float | None = None, ) -> None: ... - @property - def filename(self) -> str: ... + if sys.version_info < (3, 12): + @property + def filename(self) -> str: ... + @property def mtime(self) -> int | None: ... crc: int diff --git a/tests/stubtest_allowlists/py312.txt b/tests/stubtest_allowlists/py312.txt index 85ce2b301..d5134b7e7 100644 --- a/tests/stubtest_allowlists/py312.txt +++ b/tests/stubtest_allowlists/py312.txt @@ -12,7 +12,6 @@ enum.Enum.__signature__ enum.EnumMeta.__call__ enum.EnumType.__call__ enum.property.member -gzip.GzipFile.filename http.client.HTTPConnection.get_proxy_response_headers imaplib.IMAP4_SSL.__init__ importlib.abc.Finder