From 0233312422edcd1e6201def6f26bb3198e5edae9 Mon Sep 17 00:00:00 2001 From: Glyph Date: Fri, 27 Sep 2019 16:00:39 -0700 Subject: [PATCH] rrule.weekday(...) returns rrule.weekdays, not _common.weekdays. --- 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 1311a175e1ba..7f1b23957bab 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: ...