Use Final for undocumented constants (#12450)

This commit is contained in:
Max Muoto
2024-07-28 05:02:06 -05:00
committed by GitHub
parent 1f4d0a815f
commit 9a77f6006d
10 changed files with 60 additions and 61 deletions

View File

@@ -1,10 +1,10 @@
from _typeshed import ReadableBuffer, SupportsRead
from collections.abc import Callable
from pyexpat import errors as errors, model as model
from typing import Any, final
from typing import Any, Final, final
from typing_extensions import TypeAlias
EXPAT_VERSION: str # undocumented
EXPAT_VERSION: Final[str] # undocumented
version_info: tuple[int, int, int] # undocumented
native_encoding: str # undocumented
features: list[tuple[str, int]] # undocumented
@@ -15,7 +15,6 @@ class ExpatError(Exception):
offset: int
error = ExpatError
XML_PARAM_ENTITY_PARSING_NEVER: int
XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE: int
XML_PARAM_ENTITY_PARSING_ALWAYS: int