mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import numbers
|
||||
from types import TracebackType
|
||||
from typing import Any, Container, Dict, List, NamedTuple, Sequence, Tuple, Type, TypeVar, Union, overload
|
||||
from typing import Any, Container, NamedTuple, Sequence, Tuple, Type, TypeVar, Union, overload
|
||||
|
||||
_Decimal = Union[Decimal, int]
|
||||
_DecimalNew = Union[Decimal, float, str, Tuple[int, Sequence[int], int]]
|
||||
@@ -164,8 +164,8 @@ class Context(object):
|
||||
Emax: int
|
||||
capitals: int
|
||||
clamp: int
|
||||
traps: Dict[_TrapType, bool]
|
||||
flags: Dict[_TrapType, bool]
|
||||
traps: dict[_TrapType, bool]
|
||||
flags: dict[_TrapType, bool]
|
||||
def __init__(
|
||||
self,
|
||||
prec: int | None = ...,
|
||||
@@ -174,9 +174,9 @@ class Context(object):
|
||||
Emax: int | None = ...,
|
||||
capitals: int | None = ...,
|
||||
clamp: int | None = ...,
|
||||
flags: None | Dict[_TrapType, bool] | Container[_TrapType] = ...,
|
||||
traps: None | Dict[_TrapType, bool] | Container[_TrapType] = ...,
|
||||
_ignored_flags: List[_TrapType] | None = ...,
|
||||
flags: None | dict[_TrapType, bool] | Container[_TrapType] = ...,
|
||||
traps: None | dict[_TrapType, bool] | Container[_TrapType] = ...,
|
||||
_ignored_flags: list[_TrapType] | None = ...,
|
||||
) -> None: ...
|
||||
# __setattr__() only allows to set a specific set of attributes,
|
||||
# already defined above.
|
||||
|
||||
Reference in New Issue
Block a user