mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-09 18:09:17 +08:00
Update logging.handlers.SysLogHandler for 3.14 (#14058)
* Update `logging.handlers.SysLogHandler` for 3.14 * Fix method name --------- Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user