⬆ Bump ty from 0.0.44 to 0.0.58 (#348)

* ⬆ Bump ty from 0.0.44 to 0.0.58

---
updated-dependencies:
- dependency-name: ty
  dependency-version: 0.0.58
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix ty warnings

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: d3vyce <nicolas.sudres@proton.me>
This commit is contained in:
dependabot[bot]
2026-07-11 14:49:30 +02:00
committed by GitHub
co-authored by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> d3vyce
parent 498e75c624
commit 953d58e5cc
3 changed files with 26 additions and 24 deletions
+2 -1
View File
@@ -190,7 +190,8 @@ class AsyncCrud(Generic[ModelType]):
"""Re-query instance by PK with default_load_options applied."""
mapper = cls.model.__mapper__
pk_filters = [
getattr(cls.model, col.key) == getattr(instance, col.key)
getattr(cls.model, cast(str, col.key))
== getattr(instance, cast(str, col.key))
for col in mapper.primary_key
]
return await cls.get(session, filters=pk_filters)