fix(typing-checks): fix small typing and lint errors in config.py (#421)

This commit is contained in:
Dmitrii Orlov 2022-03-24 09:25:00 +01:00 committed by GitHub
parent 3950cdc4bc
commit e039f4011f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -615,7 +615,7 @@ class _ConfigCommon:
The current config is used as a base. Any properties not specified in
keyword arguments will remain unchanged.
"""
return self.__class__(**{**dict(self), **kwargs}) # type: ignore
return self.__class__(**{**dict(self), **kwargs})
def __repr__(self) -> str:
"""A string representation indicating the class and its properties."""
@ -635,7 +635,7 @@ class _ConfigCommon:
return all(
getattr(other, k) == v
for k, v in self
if not k in self._derived_properties
if k not in self._derived_properties
)
def __iter__(self) -> t.Iterator[t.Tuple[str, t.Any]]: