diff --git a/third_party/2and3/dateutil/_common.pyi b/third_party/2and3/dateutil/_common.pyi index 1311a175e..7f1b23957 100644 --- a/third_party/2and3/dateutil/_common.pyi +++ b/third_party/2and3/dateutil/_common.pyi @@ -1,9 +1,11 @@ -from typing import Optional +from typing import Optional, TypeVar + +_T = TypeVar("_T") class weekday(object): def __init__(self, weekday: int, n: Optional[int] = ...) -> None: ... - def __call__(self, n: int) -> weekday: ... + def __call__(self: _T, n: int) -> _T: ... def __eq__(self, other) -> bool: ...