diff --git a/serializable/__init__.py b/serializable/__init__.py index 1c076e7..834ef1a 100644 --- a/serializable/__init__.py +++ b/serializable/__init__.py @@ -448,9 +448,9 @@ def _from_xml(cls: Type[_T], data: Union[TextIOWrapper, Element], LOGGER.debug(f'Rendering XML from {type(data)} to {cls}...') klass = ObjectMetadataLibrary.klass_mappings.get(f'{cls.__module__}.{cls.__qualname__}', None) if klass is None: - LOGGER.waqqrning( # type:ignore[call-arg] + LOGGER.warning( f'{cls.__module__}.{cls.__qualname__} is not a known serializable class', - **_warning_kwargs) + **_warning_kwargs) # type:ignore[arg-type] return None klass_properties = ObjectMetadataLibrary.klass_property_mappings.get(f'{cls.__module__}.{cls.__qualname__}', {}) diff --git a/serializable/helpers.py b/serializable/helpers.py index 073020b..742941a 100644 --- a/serializable/helpers.py +++ b/serializable/helpers.py @@ -76,14 +76,14 @@ def deserialize(cls, o: object) -> date: if str(o).endswith('Z'): o = str(o)[:-1] - LOGGER.warning( # type:ignore[call-arg] + LOGGER.warning( 'Potential data loss will occur: dates with timezones not supported in Python', - **_warning_kwargs) + **_warning_kwargs) # type:ignore[arg-type] if '+' in str(o): o = str(o)[:str(o).index('+')] - LOGGER.warning( # type:ignore[call-arg] + LOGGER.warning( 'Potential data loss will occur: dates with timezones not supported in Python', - **_warning_kwargs) + **_warning_kwargs) # type:ignore[arg-type] return date.fromisoformat(str(o)) except ValueError: raise ValueError(f'Date string supplied ({o}) is not a supported ISO Format')