Skip to content

Commit 60b3032

Browse files
authored
Fix type hint for DjangoObjectTypeOptions.model (#1269)
Proper type is `typing.Type[Model]`, not `Model`
1 parent 05d3df9 commit 60b3032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene_django/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def validate_fields(type_, model, fields, only_fields, exclude_fields):
122122

123123

124124
class DjangoObjectTypeOptions(ObjectTypeOptions):
125-
model = None # type: Model
125+
model = None # type: Type[Model]
126126
registry = None # type: Registry
127127
connection = None # type: Type[Connection]
128128

0 commit comments

Comments
 (0)