diff --git a/.coverage b/.coverage index dc4c4fa..6b4bedb 100644 Binary files a/.coverage and b/.coverage differ diff --git a/.flake8 b/.flake8 index ec05a50..9976335 100644 --- a/.flake8 +++ b/.flake8 @@ -1,5 +1,5 @@ [flake8] ignore = ANN101, ANN102, W503 -max-complexity = 10 +max-complexity = 8 max-line-length = 88 exclude = p38venv,.pytest_cache diff --git a/orm/models.py b/orm/models.py index 68e32f4..e0aaa25 100644 --- a/orm/models.py +++ b/orm/models.py @@ -184,7 +184,7 @@ class Model(list, metaclass=ModelMetaclass): return self.values.dict() == other.values.dict() def __same__(self, other: "Model") -> bool: - if self.__class__ != other.__class__: + if self.__class__ != other.__class__: # pragma no cover return False return self._orm_id == other._orm_id or ( self.values is not None and other.values is not None and self.pk == other.pk