mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-24 04:41:30 +08:00
Moved syslog from 2/ to 2and3/. Allow both forms of syslog.syslog. (#884)
This commit is contained in:
committed by
Guido van Rossum
parent
a9bb7f89d3
commit
bb5ba13315
@@ -1,3 +1,5 @@
|
||||
from typing import overload
|
||||
|
||||
LOG_ALERT = ... # type: int
|
||||
LOG_AUTH = ... # type: int
|
||||
LOG_CONS = ... # type: int
|
||||
@@ -35,4 +37,8 @@ def LOG_UPTO(a: int) -> int: ...
|
||||
def closelog() -> None: ...
|
||||
def openlog(ident: str = ..., logoption: int = ..., facility: int = ...) -> None: ...
|
||||
def setlogmask(x: int) -> int: ...
|
||||
|
||||
@overload
|
||||
def syslog(priority: int, message: str) -> None: ...
|
||||
@overload
|
||||
def syslog(message: str) -> None: ...
|
||||
Reference in New Issue
Block a user