Big diff: use lower-case list and dict (#5888)

This commit is contained in:
Akuli
2021-08-08 19:26:35 +03:00
committed by GitHub
parent 11f54c3407
commit ce11072dbe
325 changed files with 2196 additions and 2334 deletions

View File

@@ -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: ...

View File

@@ -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: ...