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,17 +1,17 @@
|
||||
from datetime import datetime, tzinfo
|
||||
from typing import IO, Any, Dict, List, Mapping, Text, Tuple, Union
|
||||
from typing import IO, Any, Mapping, Text, Tuple, Union
|
||||
|
||||
_FileOrStr = Union[bytes, Text, IO[str], IO[Any]]
|
||||
|
||||
class parserinfo(object):
|
||||
JUMP: List[str]
|
||||
WEEKDAYS: List[Tuple[str, str]]
|
||||
MONTHS: List[Tuple[str, str]]
|
||||
HMS: List[Tuple[str, str, str]]
|
||||
AMPM: List[Tuple[str, str]]
|
||||
UTCZONE: List[str]
|
||||
PERTAIN: List[str]
|
||||
TZOFFSET: Dict[str, int]
|
||||
JUMP: list[str]
|
||||
WEEKDAYS: list[Tuple[str, str]]
|
||||
MONTHS: list[Tuple[str, str]]
|
||||
HMS: list[Tuple[str, str, str]]
|
||||
AMPM: list[Tuple[str, str]]
|
||||
UTCZONE: list[str]
|
||||
PERTAIN: list[str]
|
||||
TZOFFSET: dict[str, int]
|
||||
def __init__(self, dayfirst: bool = ..., yearfirst: bool = ...) -> None: ...
|
||||
def jump(self, name: Text) -> bool: ...
|
||||
def weekday(self, name: Text) -> int | None: ...
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import datetime
|
||||
from typing import IO, Any, List, Text, Tuple, Union
|
||||
from typing import IO, Any, Text, Tuple, Union
|
||||
|
||||
from ..relativedelta import relativedelta
|
||||
from ._common import _tzinfo as _tzinfo, enfold as enfold, tzname_in_python2 as tzname_in_python2, tzrangebase as tzrangebase
|
||||
@@ -87,8 +87,8 @@ class tzical:
|
||||
def keys(self): ...
|
||||
def get(self, tzid: Any | None = ...): ...
|
||||
|
||||
TZFILES: List[str]
|
||||
TZPATHS: List[str]
|
||||
TZFILES: list[str]
|
||||
TZPATHS: list[str]
|
||||
|
||||
def datetime_exists(dt: datetime.datetime, tz: datetime.tzinfo | None = ...) -> bool: ...
|
||||
def datetime_ambiguous(dt: datetime.datetime, tz: datetime.tzinfo | None = ...) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user