Fix type hint for DjangoObjectTypeOptions.model (#1269)

Proper type is `typing.Type[Model]`, not `Model`
This commit is contained in:
belkka 2022-09-24 16:00:12 +03:00 committed by GitHub
parent 05d3df92e7
commit 60b3032014
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): 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]