Added missing type annotations and type arguments (#5070)

Co-authored-by: Eric Traut <erictr@microsoft.com>
Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
This commit is contained in:
Eric Traut
2021-02-25 16:09:58 -07:00
committed by GitHub
parent bf583da275
commit 4b4ced5fa0
16 changed files with 62 additions and 62 deletions

View File

@@ -16,13 +16,13 @@ class DateTimeRange(object):
start_time_format: str = ...,
end_time_format: str = ...,
) -> None: ...
def __eq__(self, other) -> bool: ...
def __ne__(self, other) -> bool: ...
def __add__(self, other) -> DateTimeRange: ...
def __iadd__(self, other) -> DateTimeRange: ...
def __sub__(self, other) -> DateTimeRange: ...
def __isub__(self, other) -> DateTimeRange: ...
def __contains__(self, x) -> bool: ...
def __eq__(self, other: object) -> bool: ...
def __ne__(self, other: object) -> bool: ...
def __add__(self, other: datetime.timedelta) -> DateTimeRange: ...
def __iadd__(self, other: datetime.timedelta) -> DateTimeRange: ...
def __sub__(self, other: datetime.timedelta) -> DateTimeRange: ...
def __isub__(self, other: datetime.timedelta) -> DateTimeRange: ...
def __contains__(self, x: Union[datetime.timedelta, DateTimeRange, str]) -> bool: ...
@property
def start_datetime(self) -> datetime.datetime: ...
@property
@@ -32,7 +32,7 @@ class DateTimeRange(object):
def is_set(self) -> bool: ...
def validate_time_inversion(self) -> None: ...
def is_valid_timerange(self) -> bool: ...
def is_intersection(self, x) -> bool: ...
def is_intersection(self, x: DateTimeRange) -> bool: ...
def get_start_time_str(self) -> str: ...
def get_end_time_str(self) -> str: ...
def get_timedelta_second(self) -> float: ...