Fix several new-in-3.11 stubtest errors (#7973)

This commit is contained in:
Alex Waygood
2022-06-03 02:07:38 +01:00
committed by GitHub
parent cb9023988d
commit acc0167dc1
12 changed files with 195 additions and 85 deletions

View File

@@ -181,6 +181,9 @@ class SysLogHandler(Handler):
facility_names: ClassVar[dict[str, int]] # undocumented
priority_map: ClassVar[dict[str, str]] # undocumented
def __init__(self, address: tuple[str, int] | str = ..., facility: int = ..., socktype: SocketKind | None = ...) -> None: ...
if sys.version_info >= (3, 11):
def createSocket(self) -> None: ...
def encodePriority(self, facility: int | str, priority: int | str) -> int: ...
def mapPriority(self, levelName: str) -> str: ...