Fix type hint for DjangoObjectTypeOptions.model

Proper type is `typing.Type[Model]`, not `Model`
This commit is contained in:
belkka 2021-11-09 20:36:06 +02:00 committed by GitHub
parent e7f7d8da07
commit 9f26772ae0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]