Added some missing parameter annotations and type arguments detected by pyright. (#5061)

Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
Eric Traut
2021-02-23 11:46:53 -07:00
committed by GitHub
parent c7c025ae08
commit a1f16da64e
8 changed files with 16 additions and 12 deletions

View File

@@ -5,7 +5,7 @@ _T = TypeVar("_T")
class weekday(object):
def __init__(self, weekday: int, n: Optional[int] = ...) -> None: ...
def __call__(self: _T, n: int) -> _T: ...
def __eq__(self, other) -> bool: ...
def __eq__(self, other: object) -> bool: ...
def __repr__(self) -> str: ...
def __hash__(self) -> int: ...
weekday: int

View File

@@ -88,7 +88,7 @@ class relativedelta(object):
def __nonzero__(self) -> bool: ...
def __mul__(self: _SelfT, other: SupportsFloat) -> _SelfT: ...
def __rmul__(self: _SelfT, other: SupportsFloat) -> _SelfT: ...
def __eq__(self, other) -> bool: ...
def __eq__(self, other: object) -> bool: ...
def __ne__(self, other: object) -> bool: ...
def __div__(self: _SelfT, other: SupportsFloat) -> _SelfT: ...
def __truediv__(self: _SelfT, other: SupportsFloat) -> _SelfT: ...