Update logging.handlers.SysLogHandler
for 3.14 (#14058) · python/typeshed@b7d5b1d (original) (raw)
`@@ -144,9 +144,19 @@ class SysLogHandler(Handler):
`
144
144
`priority_names: ClassVar[dict[str, int]] # undocumented
`
145
145
`facility_names: ClassVar[dict[str, int]] # undocumented
`
146
146
`priority_map: ClassVar[dict[str, str]] # undocumented
`
147
``
`-
def init(
`
148
``
`-
self, address: tuple[str, int] | str = ("localhost", 514), facility: str | int = 1, socktype: SocketKind | None = None
`
149
``
`-
) -> None: ...
`
``
147
`+
if sys.version_info >= (3, 14):
`
``
148
`+
timeout: float | None
`
``
149
`+
def init(
`
``
150
`+
self,
`
``
151
`+
address: tuple[str, int] | str = ("localhost", 514),
`
``
152
`+
facility: str | int = 1,
`
``
153
`+
socktype: SocketKind | None = None,
`
``
154
`+
timeout: float | None = None,
`
``
155
`+
) -> None: ...
`
``
156
`+
else:
`
``
157
`+
def init(
`
``
158
`+
self, address: tuple[str, int] | str = ("localhost", 514), facility: str | int = 1, socktype: SocketKind | None = None
`
``
159
`+
) -> None: ...
`
150
160
`if sys.version_info >= (3, 11):
`
151
161
`def createSocket(self) -> None: ...
`
152
162
``