mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Use PEP 585 syntax wherever possible (#6717)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import datetime
|
||||
import sys
|
||||
from time import struct_time
|
||||
from typing import Any, Iterable, Optional, Sequence, Tuple
|
||||
from typing import Any, Iterable, Optional, Sequence
|
||||
|
||||
_LocaleType = Tuple[Optional[str], Optional[str]]
|
||||
_LocaleType = tuple[Optional[str], Optional[str]]
|
||||
|
||||
class IllegalMonthError(ValueError):
|
||||
def __init__(self, month: int) -> None: ...
|
||||
@@ -97,7 +97,7 @@ c: TextCalendar
|
||||
def setfirstweekday(firstweekday: int) -> None: ...
|
||||
def format(cols: int, colwidth: int = ..., spacing: int = ...) -> str: ...
|
||||
def formatstring(cols: int, colwidth: int = ..., spacing: int = ...) -> str: ...
|
||||
def timegm(tuple: Tuple[int, ...] | struct_time) -> int: ...
|
||||
def timegm(tuple: tuple[int, ...] | struct_time) -> int: ...
|
||||
|
||||
# Data attributes
|
||||
day_name: Sequence[str]
|
||||
|
||||
Reference in New Issue
Block a user