8000 Update `logging.handlers.SysLogHandler` for 3.14 by donbarbos · Pull Request #14058 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter 8000

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion stdlib/@tests/stubtest_allowlists/py314.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ importlib.machinery.__all__
importlib.machinery.AppleFrameworkLoader
importlib.util.__all__
importlib.util.Loader
logging.handlers.SysLogHandler.__init__
multiprocessing.forkserver.main
multiprocessing.managers.BaseListProxy.clear
multiprocessing.managers.BaseListProxy.copy
Expand Down
16 changes: 13 additions & 3 deletions stdlib/logging/handlers.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,19 @@ class SysLogHandler(Handler):
priority_names: ClassVar[dict[str, int]] # undocumented
facility_names: ClassVar[dict[str, int]] # undocumented
priority_map: ClassVar[dict[str, str]] # undocumented
def __init__(
self, address: tuple[str, int] | str = ("localhost", 514), facility: str | int = 1, socktype: SocketKind | None = None
) -> None: ...
if sys.version_info >= (3, 14):
timeout: float | None
def __init__(
self,
address: tuple[str, int] | str = ("localhost", 514),
facility: str | int = 1,
socktype: SocketKind | None = None,
timeout: float | None = None,
) -> None: ...
else:
def __init__(
self, address: tuple[str, int] | str = ("localhost", 514), facility: str | int = 1, socktype: SocketKind | None = None
) -> None: ...
if sys.version_info >= (3, 11):
def createSocket(self) -> None: ...

Expand Down
0