Skip to content

Commit 8773414

Browse files
committed
Remove argument
1 parent 47a5e94 commit 8773414

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

graphene_pydantic/inputobjecttype.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ def __init_subclass_with_meta__(
8080
_meta=None,
8181
**options,
8282
):
83-
assert model and issubclass(
84-
model, pydantic.BaseModel
83+
assert (
84+
model and issubclass(model, pydantic.BaseModel)
8585
), f'You need to pass a valid Pydantic model in {cls.__name__}.Meta, received "{model}"'
8686

8787
assert isinstance(
@@ -149,8 +149,6 @@ def resolve_placeholders(cls):
149149
model=target_type.model,
150150
)
151151
fields_to_update[name] = graphene_field
152-
meta.registry.register_object_field(
153-
cls, name, pydantic_field, model=target_type.model
154-
)
152+
meta.registry.register_object_field(cls, name, pydantic_field)
155153
# update the graphene side of things
156154
meta.fields.update(fields_to_update)

0 commit comments

Comments
 (0)