From bb6a6e34213794e8b2ddb9097e985914bf1afa8b Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Sun, 9 Jan 2022 20:34:44 +0300 Subject: [PATCH] Use `Literal` and `__all__` in `binhex` (#6845) --- stdlib/binhex.pyi | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/stdlib/binhex.pyi b/stdlib/binhex.pyi index 4e295b8ed..e531ccd50 100644 --- a/stdlib/binhex.pyi +++ b/stdlib/binhex.pyi @@ -1,10 +1,13 @@ from typing import IO, Any, Union +from typing_extensions import Literal + +__all__ = ["binhex", "hexbin", "Error"] class Error(Exception): ... -REASONABLY_LARGE: int -LINELEN: int -RUNCHAR: bytes +REASONABLY_LARGE: Literal[32768] +LINELEN: Literal[64] +RUNCHAR: Literal[b"\x90"] class FInfo: def __init__(self) -> None: ...