Use PEP 570 syntax in stdlib (#11250)

This commit is contained in:
Shantanu authored and GitHub committed 2024-03-09 14:50:16 -08:00
1 parent 63737acac6
commit 470a13ab09
139 files changed
+2412 -2371

No files matched your search

+3 -3
View File
@@ -35,11 +35,11 @@ if sys.platform != "win32":
LOG_USER: Literal[8]
LOG_UUCP: Literal[64]
LOG_WARNING: Literal[4]
def LOG_MASK(__pri: int) -> int: ...
def LOG_UPTO(__pri: int) -> int: ...
def LOG_MASK(pri: int, /) -> int: ...
def LOG_UPTO(pri: int, /) -> int: ...
def closelog() -> None: ...
def openlog(ident: str = ..., logoption: int = ..., facility: int = ...) -> None: ...
def setlogmask(__maskpri: int) -> int: ...
def setlogmask(maskpri: int, /) -> int: ...
@overload
def syslog(priority: int, message: str) -> None: ...
@overload