Skip to content

Commit

Permalink
chore: remove unused arguments in the extension
Browse files Browse the repository at this point in the history
  • Loading branch information
erikwrede committed Mar 6, 2023
1 parent 00e1a49 commit 96a4516
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions strawberry/experimental/pydantic/pydantic_type_extension.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import TYPE_CHECKING, Optional, Type
from typing import TYPE_CHECKING, Type

from strawberry.annotation import StrawberryAnnotation
from strawberry.auto import StrawberryAuto
Expand All @@ -18,13 +18,9 @@ class PydanticTypeExtension(TypeExtension):
def __init__(
self,
model: Type[PydanticModel],
*,
name: Optional[str] = None,
is_input: bool = False,
is_interface: bool = False,
all_fields: bool = False,
use_pydantic_alias: bool = True,
):
# TODO add all_fields support
self.model = model
self.use_pydantic_alias = use_pydantic_alias

Expand Down

0 comments on commit 96a4516

Please sign in to comment.