forked from CGM_Public/pretix_original
remove empty docstrings
This commit is contained in:
@@ -207,10 +207,6 @@ class RelativeDate:
|
|||||||
return new_date
|
return new_date
|
||||||
|
|
||||||
def to_string(self) -> str:
|
def to_string(self) -> str:
|
||||||
"""
|
|
||||||
|
|
||||||
:return:
|
|
||||||
"""
|
|
||||||
if self.minutes is not None:
|
if self.minutes is not None:
|
||||||
return 'RELDATE/minutes/{}/{}/{}'.format( #
|
return 'RELDATE/minutes/{}/{}/{}'.format( #
|
||||||
self.minutes,
|
self.minutes,
|
||||||
@@ -226,10 +222,6 @@ class RelativeDate:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_string(cls, input: str):
|
def from_string(cls, input: str):
|
||||||
"""
|
|
||||||
|
|
||||||
:param input:
|
|
||||||
"""
|
|
||||||
if not input.startswith('RELDATE/'):
|
if not input.startswith('RELDATE/'):
|
||||||
raise TypeError("Invalid input for RelativeDate.from_string()")
|
raise TypeError("Invalid input for RelativeDate.from_string()")
|
||||||
|
|
||||||
@@ -311,10 +303,6 @@ class RelativeDateWrapper:
|
|||||||
return self.data.datetime(base)
|
return self.data.datetime(base)
|
||||||
|
|
||||||
def to_string(self) -> str:
|
def to_string(self) -> str:
|
||||||
"""
|
|
||||||
|
|
||||||
:return:
|
|
||||||
"""
|
|
||||||
if isinstance(self.data, (datetime.datetime, datetime.date)):
|
if isinstance(self.data, (datetime.datetime, datetime.date)):
|
||||||
return self.data.isoformat()
|
return self.data.isoformat()
|
||||||
else:
|
else:
|
||||||
@@ -322,11 +310,6 @@ class RelativeDateWrapper:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_string(cls, input: str):
|
def from_string(cls, input: str):
|
||||||
"""
|
|
||||||
|
|
||||||
:param input:
|
|
||||||
:return:
|
|
||||||
"""
|
|
||||||
if input.startswith('RELDATE/'):
|
if input.startswith('RELDATE/'):
|
||||||
data = RelativeDate.from_string(input)
|
data = RelativeDate.from_string(input)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user