mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-25 02:54:06 +03:00
Fix type hint for DjangoObjectTypeOptions.model (#1269)
Proper type is `typing.Type[Model]`, not `Model`
This commit is contained in:
parent
05d3df92e7
commit
60b3032014
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user