mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-12 18:06:45 +08:00
Make more miscellaneous fields read-only, annotate _json.make_encoder (#7439)
This commit is contained in:
@@ -13,8 +13,10 @@ _T = TypeVar("_T", int, float, str)
|
||||
typecodes: str
|
||||
|
||||
class array(MutableSequence[_T], Generic[_T]):
|
||||
typecode: _TypeCode
|
||||
itemsize: int
|
||||
@property
|
||||
def typecode(self) -> _TypeCode: ...
|
||||
@property
|
||||
def itemsize(self) -> int: ...
|
||||
@overload
|
||||
def __init__(self: array[int], __typecode: _IntTypeCode, __initializer: bytes | Iterable[_T] = ...) -> None: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user