mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-26 04:46:46 +08:00
Add many missing __match_args__ attributes (#7556)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import sys
|
||||
from _typeshed import structseq
|
||||
from typing import Any, Protocol
|
||||
from typing_extensions import Literal, final
|
||||
from typing_extensions import Final, Literal, final
|
||||
|
||||
_TimeTuple = tuple[int, int, int, int, int, int, int, int, int]
|
||||
|
||||
@@ -38,6 +38,8 @@ if sys.version_info >= (3, 9) and sys.platform == "linux":
|
||||
# https://github.com/python/typeshed/pull/6560#discussion_r767162532
|
||||
@final
|
||||
class struct_time(structseq[Any | int], _TimeTuple):
|
||||
if sys.version_info >= (3, 10):
|
||||
__match_args__: Final = ("tm_year", "tm_mon", "tm_mday", "tm_hour", "tm_min", "tm_sec", "tm_wday", "tm_yday", "tm_isdst")
|
||||
@property
|
||||
def tm_year(self) -> int: ...
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user