Skip to content

Commit 61831c0

Browse files
Gobot1234pre-commit-ci[bot]AlexWaygood
authored
Add some undocumented constants to gzip.pyi (#8675)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Alex Waygood <[email protected]>
1 parent bfe56cd commit 61831c0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

stdlib/gzip.pyi

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,14 @@ _ReadBinaryMode: TypeAlias = Literal["r", "rb"]
1515
_WriteBinaryMode: TypeAlias = Literal["a", "ab", "w", "wb", "x", "xb"]
1616
_OpenTextMode: TypeAlias = Literal["rt", "at", "wt", "xt"]
1717

18-
READ: Literal[1]
19-
WRITE: Literal[2]
18+
READ: Literal[1] # undocumented
19+
WRITE: Literal[2] # undocumented
20+
21+
FTEXT: int # actually Literal[1] # undocumented
22+
FHCRC: int # actually Literal[2] # undocumented
23+
FEXTRA: int # actually Literal[4] # undocumented
24+
FNAME: int # actually Literal[8] # undocumented
25+
FCOMMENT: int # actually Literal[16] # undocumented
2026

2127
class _ReadableFileobj(Protocol):
2228
def read(self, __n: int) -> bytes: ...

0 commit comments

Comments
 (0)