Fix some CAPI annotations (#13081)

This commit is contained in:
Stephen Morton
2024-11-23 16:00:49 -08:00
committed by GitHub
parent 7ab6620c0f
commit 9614cc2d88
5 changed files with 8 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ from _typeshed import ReadableBuffer, SupportsRead
from collections.abc import Callable
from pyexpat import errors as errors, model as model
from typing import Any, Final, final
from typing_extensions import TypeAlias
from typing_extensions import CapsuleType, TypeAlias
from xml.parsers.expat import ExpatError as ExpatError
EXPAT_VERSION: Final[str] # undocumented
@@ -78,3 +78,5 @@ def ErrorString(code: int, /) -> str: ...
def ParserCreate(
encoding: str | None = None, namespace_separator: str | None = None, intern: dict[str, Any] | None = None
) -> XMLParserType: ...
expat_CAPI: CapsuleType