Skip to content

Commit

Permalink
Follow mypy direction and remove unused ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
Pasarus committed Jul 30, 2024
1 parent a342b15 commit f9cce44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions db/data_models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ def __eq__(self, other: object) -> bool:
if not isinstance(other, Base):
return False
# Ignores due to inspect returning Any, includes None, by default
return {attr.key: getattr(self, attr.key) for attr in inspect(self).mapper.column_attrs} == { # type: ignore
return {attr.key: getattr(self, attr.key) for attr in inspect(self).mapper.column_attrs} == {
attr.key: getattr(other, attr.key)
for attr in inspect(other).mapper.column_attrs # type: ignore
for attr in inspect(other).mapper.column_attrs
}


Expand Down Expand Up @@ -118,7 +118,7 @@ def __repr__(self) -> str:
)


class Instrument(Base): # type: ignore[valid-type, misc]
class Instrument(Base):
"""
The Instrument Table's declarative declaration
"""
Expand Down

0 comments on commit f9cce44

Please sign in to comment.