Skip to content

Commit

Permalink
Fix typing for test model
Browse files Browse the repository at this point in the history
  • Loading branch information
fjsj committed Sep 28, 2023
1 parent 145517a commit 3b7de81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/projects/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Status(models.TextChoices):
)

@model_property(annotate={"_milestone_count": Count("milestone")})
def is_small(self) -> int:
def is_small(self) -> bool:
return self._milestone_count < 3


Expand Down
2 changes: 1 addition & 1 deletion tests/projects/snapshots/schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ type ProjectType implements Node {
milestonesCount: Int!
isDelayed: Boolean!
cost: Decimal @isAuthenticated
isSmall: Int!
isSmall: Boolean!
}

"""An edge in a connection."""
Expand Down

0 comments on commit 3b7de81

Please # to comment.