mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Add @final to many unsubclassable stdlib classes (#6299)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import sys
|
||||
from types import SimpleNamespace
|
||||
from typing import Any, NamedTuple, Tuple
|
||||
from typing_extensions import final
|
||||
|
||||
_TimeTuple = Tuple[int, int, int, int, int, int, int, int, int]
|
||||
|
||||
@@ -48,6 +49,7 @@ class _struct_time(NamedTuple):
|
||||
@property
|
||||
def n_unnamed_fields(self) -> int: ...
|
||||
|
||||
@final
|
||||
class struct_time(_struct_time):
|
||||
def __init__(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user