From 83589844c9f1a9629dc470a564766d10934c755a Mon Sep 17 00:00:00 2001 From: Glyph Date: Fri, 4 Oct 2019 16:49:49 -0700 Subject: [PATCH] rrule.weekday(...) returns rrule.weekdays, not _common.weekdays. (#3274) --- third_party/2and3/dateutil/_common.pyi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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: ...