Skip to content

Commit bb6a6e3

Browse files
authored
Use Literal and __all__ in binhex (#6845)
1 parent 34426db commit bb6a6e3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

stdlib/binhex.pyi

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
from typing import IO, Any, Union
2+
from typing_extensions import Literal
3+
4+
__all__ = ["binhex", "hexbin", "Error"]
25

36
class Error(Exception): ...
47

5-
REASONABLY_LARGE: int
6-
LINELEN: int
7-
RUNCHAR: bytes
8+
REASONABLY_LARGE: Literal[32768]
9+
LINELEN: Literal[64]
10+
RUNCHAR: Literal[b"\x90"]
811

912
class FInfo:
1013
def __init__(self) -> None: ...

0 commit comments

Comments
 (0)