Skip to content

Commit

Permalink
dataclass kw_only not supported yet
Browse files Browse the repository at this point in the history
  • Loading branch information
hxjo committed Jul 18, 2024
1 parent 0b510df commit 441d107
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inertia/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,17 @@ def _read_manifest_file(path: str) -> ViteManifest:
return cast(ViteManifest, json_load(manifest_file))


@dataclass(kw_only=True)
@dataclass()
class InertiaContext:
"""
The jinja template context to pass to render the html for the first request.
"""

environment: Literal["development", "production"]
dev_url: str
data: Optional[str] = None
css: list[str]
js: str
is_ssr: bool
data: Optional[str] = None
ssr_head: Optional[str] = None
ssr_body: Optional[str] = None

0 comments on commit 441d107

Please sign in to comment.