mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-03 18:13:36 +08:00
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:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user