@@ -398,7 +398,7 @@ def parse_datetime_literal(value):
398398
399399
400400class EdmDateTimeTypTraits (EdmPrefixedTypTraits ):
401- """Emd .DateTime traits
401+ """Edm .DateTime traits
402402
403403 Represents date and time with values ranging from 12:00:00 midnight,
404404 January 1, 1753 A.D. through 11:59:59 P.M, December 9999 A.D.
@@ -428,7 +428,7 @@ def to_literal(self, value):
428428 f'Cannot convert value of type { type (value )} to literal. Datetime format is required.' )
429429
430430 if value .tzinfo != datetime .timezone .utc :
431- raise PyODataModelError ('Emd .DateTime accepts only UTC' )
431+ raise PyODataModelError ('Edm .DateTime accepts only UTC' )
432432
433433 # Sets timezone to none to avoid including timezone information in the literal form.
434434 return super (EdmDateTimeTypTraits , self ).to_literal (value .replace (tzinfo = None ).isoformat ())
@@ -438,7 +438,7 @@ def to_json(self, value):
438438 return value
439439
440440 if value .tzinfo != datetime .timezone .utc :
441- raise PyODataModelError ('Emd .DateTime accepts only UTC' )
441+ raise PyODataModelError ('Edm .DateTime accepts only UTC' )
442442
443443 # Converts datetime into timestamp in milliseconds in UTC timezone as defined in ODATA specification
444444 # https://www.odata.org/documentation/odata-version-2-0/json-format/
@@ -482,7 +482,7 @@ def from_literal(self, value):
482482
483483
484484class EdmDateTimeOffsetTypTraits (EdmPrefixedTypTraits ):
485- """Emd .DateTimeOffset traits
485+ """Edm .DateTimeOffset traits
486486
487487 Represents date and time, plus an offset in minutes from UTC, with values ranging from 12:00:00 midnight,
488488 January 1, 1753 A.D. through 11:59:59 P.M, December 9999 A.D
0 commit comments