Skip to content

Commit

Permalink
Remove argument
Browse files Browse the repository at this point in the history
  • Loading branch information
necaris committed Dec 10, 2024
1 parent 47a5e94 commit 8773414
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions graphene_pydantic/inputobjecttype.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def __init_subclass_with_meta__(
_meta=None,
**options,
):
assert model and issubclass(
model, pydantic.BaseModel
assert (
model and issubclass(model, pydantic.BaseModel)
), f'You need to pass a valid Pydantic model in {cls.__name__}.Meta, received "{model}"'

assert isinstance(
Expand Down Expand Up @@ -149,8 +149,6 @@ def resolve_placeholders(cls):
model=target_type.model,
)
fields_to_update[name] = graphene_field
meta.registry.register_object_field(
cls, name, pydantic_field, model=target_type.model
)
meta.registry.register_object_field(cls, name, pydantic_field)
# update the graphene side of things
meta.fields.update(fields_to_update)

0 comments on commit 8773414

Please sign in to comment.