Skip to content

Commit

Permalink
Fix type hint for DjangoObjectTypeOptions.model
Browse files Browse the repository at this point in the history
Proper type is `typing.Type[Model]`, not `Model`
  • Loading branch information
belkka committed Nov 9, 2021
1 parent e7f7d8d commit 9f26772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphene_django/types.py
Expand Up @@ -122,7 +122,7 @@ def validate_fields(type_, model, fields, only_fields, exclude_fields):


class DjangoObjectTypeOptions(ObjectTypeOptions):
model = None # type: Model
model = None # type: Type[Model]
registry = None # type: Registry
connection = None # type: Type[Connection]

Expand Down

0 comments on commit 9f26772

Please sign in to comment.