Skip to content

Commit

Permalink
add type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
jason20c committed Jul 27, 2022
1 parent 2768367 commit d60ca17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/django_grainy/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@ def set_namespace_base(cls, value: Namespace):
raise TypeError("`value` needs to be a Namespace instance")
cls.namespace_base = value

# TODO: type hint
@classmethod
def set_parent(cls, parent):
def set_parent(cls, parent: Model):
cls.parent = parent


Expand Down

0 comments on commit d60ca17

Please sign in to comment.