diff --git a/ormar/__init__.py b/ormar/__init__.py index 49d51a3..f444fb6 100644 --- a/ormar/__init__.py +++ b/ormar/__init__.py @@ -22,7 +22,7 @@ And what's a better name for python ORM than snakes cabinet :) try: from importlib.metadata import version # type: ignore except ImportError: # pragma: no cover - from importlib_metadata import version # type: ignore + from importlib_metadata import version # type: ignore from ormar.protocols import QuerySetProtocol, RelationProtocol # noqa: I100 from ormar.decorators import ( # noqa: I100 post_delete, diff --git a/ormar/fields/foreign_key.py b/ormar/fields/foreign_key.py index be5913f..6a706c8 100644 --- a/ormar/fields/foreign_key.py +++ b/ormar/fields/foreign_key.py @@ -182,7 +182,7 @@ def ForeignKey(to: ForwardRef, **kwargs: Any) -> "Model": # pragma: no cover ... -def ForeignKey( # noqa CFQ002 +def ForeignKey( # type: ignore # noqa CFQ002 to: "ToType", *, name: str = None, diff --git a/ormar/fields/many_to_many.py b/ormar/fields/many_to_many.py index 2bfbf16..350fa3c 100644 --- a/ormar/fields/many_to_many.py +++ b/ormar/fields/many_to_many.py @@ -78,7 +78,7 @@ def ManyToMany(to: ForwardRef, **kwargs: Any) -> "RelationProxy": # pragma: no ... -def ManyToMany( +def ManyToMany( # type: ignore to: "ToType", through: Optional["ToType"] = None, *,