mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Backport many Self-related changes to the Python-2 stdlib (#7128)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import sys
|
||||
from typing import Any, NamedTuple
|
||||
from typing_extensions import final
|
||||
|
||||
_TimeTuple = tuple[int, int, int, int, int, int, int, int, int]
|
||||
|
||||
@@ -26,6 +27,7 @@ class _struct_time(NamedTuple):
|
||||
@property
|
||||
def n_unnamed_fields(self) -> int: ...
|
||||
|
||||
@final
|
||||
class struct_time(_struct_time):
|
||||
def __init__(self, o: _TimeTuple, _arg: Any = ...) -> None: ...
|
||||
def __new__(cls, o: _TimeTuple, _arg: Any = ...) -> struct_time: ...
|
||||
|
||||
Reference in New Issue
Block a user