@@ -3,7 +3,7 @@ import sys
33import zlib
44from _typeshed import ReadableBuffer, SizedBuffer, StrOrBytesPath
55from io import FileIO
6- from typing import Literal, Protocol, TextIO, overload
6+ from typing import Final, Literal, Protocol, TextIO, overload
77from typing_extensions import TypeAlias
88
99__all__ = ["BadGzipFile", "GzipFile", "open", "compress", "decompress"]
@@ -12,14 +12,14 @@ _ReadBinaryMode: TypeAlias = Literal["r", "rb"]
1212_WriteBinaryMode: TypeAlias = Literal["a", "ab", "w", "wb", "x", "xb"]
1313_OpenTextMode: TypeAlias = Literal["rt", "at", "wt", "xt"]
1414
15- READ: object # undocumented
16- WRITE: object # undocumented
15+ READ: Final[ object] # undocumented
16+ WRITE: Final[ object] # undocumented
1717
18- FTEXT: int # actually Literal[1] # undocumented
19- FHCRC: int # actually Literal[2] # undocumented
20- FEXTRA: int # actually Literal[4] # undocumented
21- FNAME: int # actually Literal[8] # undocumented
22- FCOMMENT: int # actually Literal[16] # undocumented
18+ FTEXT: Final[ int] # actually Literal[1] # undocumented
19+ FHCRC: Final[ int] # actually Literal[2] # undocumented
20+ FEXTRA: Final[ int] # actually Literal[4] # undocumented
21+ FNAME: Final[ int] # actually Literal[8] # undocumented
22+ FCOMMENT: Final[ int] # actually Literal[16] # undocumented
2323
2424class _ReadableFileobj(Protocol):
2525 def read(self, n: int, /) -> bytes: ...
0 commit comments