mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-11 08:42:32 +03:00
Fix type hint for DjangoObjectTypeOptions.model
Proper type is `typing.Type[Model]`, not `Model`
This commit is contained in:
parent
e7f7d8da07
commit
9f26772ae0
|
@ -122,7 +122,7 @@ def validate_fields(type_, model, fields, only_fields, exclude_fields):
|
||||||
|
|
||||||
|
|
||||||
class DjangoObjectTypeOptions(ObjectTypeOptions):
|
class DjangoObjectTypeOptions(ObjectTypeOptions):
|
||||||
model = None # type: Model
|
model = None # type: Type[Model]
|
||||||
registry = None # type: Registry
|
registry = None # type: Registry
|
||||||
connection = None # type: Type[Connection]
|
connection = None # type: Type[Connection]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user