Skip to content

Commit 7fdcab2

Browse files
committed
fixup types of _ymd
1 parent 6e00338 commit 7fdcab2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

stubs/python-dateutil/dateutil/parser/_parser.pyi

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,16 @@ class _ymd(list[int]):
6363
dstridx: int | None
6464
mstridx: int | None
6565
ystridx: int | None
66-
# args and kwargs are passed to list.__init__
67-
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
6866
@property
6967
def has_year(self) -> bool: ...
7068
@property
7169
def has_month(self) -> bool: ...
7270
@property
7371
def has_day(self) -> bool: ...
74-
def could_be_day(self, value: int): ...
75-
def append(self, val: str | int, label: str | None = None): ...
72+
def could_be_day(self, value: int) -> bool: ...
73+
def append(self, val: str | int, label: str | None = None) -> None: ...
7674
def _resolve_from_stridxs(self, strids: dict[str, int]) -> tuple[int, int, int]: ...
77-
def resolve_ymd(self, yearfirst: bool | None, dayfirst: bool | None): ...
75+
def resolve_ymd(self, yearfirst: bool | None, dayfirst: bool | None) -> tuple[int, int, int]: ...
7876

7977
class parser:
8078
info: parserinfo

0 commit comments

Comments
 (0)