Skip to content

Commit

Permalink
Fix pyright errors on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
keithhackbarth committed Oct 29, 2024
1 parent 22616f4 commit 7a82c78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions strawberry_django/mutations/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,14 +312,14 @@ def resolver(

def instance_level_update(
self,
info: Info | None,
info: Info,
kwargs: dict[str, Any],
data: Any,
) -> Any:
model = self.django_model
assert model is not None

vdata = vars(data).copy() if data is not None else {}
vdata = get_vdata(data)
pk = get_pk(vdata, key_attr=self.key_attr)

if pk not in (None, UNSET): # noqa: PLR6201
Expand Down

0 comments on commit 7a82c78

Please sign in to comment.