mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Add @final to several stdlib classes that cannot be subclassed at runtime (#7213)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import sys
|
||||
from typing import Any, TypeVar
|
||||
from typing_extensions import final
|
||||
|
||||
ucd_3_2_0: UCD
|
||||
ucnhash_CAPI: Any
|
||||
@@ -23,7 +24,7 @@ def mirrored(__chr: str) -> int: ...
|
||||
def name(__chr: str, __default: _T = ...) -> str | _T: ...
|
||||
def normalize(__form: str, __unistr: str) -> str: ...
|
||||
def numeric(__chr: str, __default: _T = ...) -> float | _T: ...
|
||||
|
||||
@final
|
||||
class UCD:
|
||||
# The methods below are constructed from the same array in C
|
||||
# (unicodedata_functions) and hence identical to the methods above.
|
||||
|
||||
Reference in New Issue
Block a user