We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a74b5b3 commit 8a9cb5eCopy full SHA for 8a9cb5e
3 files changed
pyproject.toml
@@ -86,7 +86,7 @@ contrib = [
86
"sanic",
87
"sanic-testing",
88
# Sample integration - Starlette
89
- "starlette",
+ "starlette<1.0",
90
# Pydantic support
91
"pydantic >=2.0,!=2.7.0",
92
# FastAPI support
tortoise/models.py
@@ -873,7 +873,7 @@ def __iter__(self) -> Iterable[tuple]:
873
yield field, getattr(self, field)
874
875
def __eq__(self, other: object) -> bool:
876
- return type(other) is type(self) and self.pk == other.pk # type: ignore
+ return type(other) is type(self) and self.pk == other.pk
877
878
def _get_pk_val(self) -> Any:
879
return getattr(self, self._meta.pk_attr, None)
0 commit comments