Skip to content

Commit

Permalink
Use 'Info' class directly instead of default factory for dataclass field
Browse files Browse the repository at this point in the history
  • Loading branch information
parafoxia committed Aug 8, 2024
1 parent 37d3a4c commit 3c37550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion strawberry/schema/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class StrawberryConfig:
default_resolver: Callable[[Any, str], object] = getattr
relay_max_results: int = 100
disable_field_suggestions: bool = False
info_class: type[Info] = field(default_factory=lambda: Info)
info_class: type[Info] = Info

def __post_init__(
self,
Expand Down

0 comments on commit 3c37550

Please sign in to comment.