MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / __deserialize_date

Method __deserialize_date

sdks/python/src/e2a/v1/generated/api_client.py:744–758  ·  view source on GitHub ↗

Deserializes string to date. :param string: str. :return: date.

(self, string)

Source from the content-addressed store, hash-verified

742 return value
743
744 def __deserialize_date(self, string):
745 """Deserializes string to date.
746
747 :param string: str.
748 :return: date.
749 """
750 try:
751 return parse(string).date()
752 except ImportError:
753 return string
754 except ValueError:
755 raise rest.ApiException(
756 status=0,
757 reason="Failed to parse `{0}` as date object".format(string)
758 )
759
760 def __deserialize_datetime(self, string):
761 """Deserializes string to datetime.

Callers 1

__deserializeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected