mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-19 22:50:29 +08:00
Add @type_check_only to stub-only private classes in stdlib (#14512)
This commit is contained in:
+2
-1
@@ -1,6 +1,6 @@
|
||||
import sys
|
||||
from _typeshed import structseq
|
||||
from typing import Any, Final, Literal, Protocol, final
|
||||
from typing import Any, Final, Literal, Protocol, final, type_check_only
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
_TimeTuple: TypeAlias = tuple[int, int, int, int, int, int, int, int, int]
|
||||
@@ -80,6 +80,7 @@ def time() -> float: ...
|
||||
if sys.platform != "win32":
|
||||
def tzset() -> None: ... # Unix only
|
||||
|
||||
@type_check_only
|
||||
class _ClockInfo(Protocol):
|
||||
adjustable: bool
|
||||
implementation: str
|
||||
|
||||
Reference in New Issue
Block a user