Skip to content

Commit

Permalink
fix: inherit parent settings for an app (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
isidentical authored Jan 27, 2024
1 parent 3f067db commit 04cb05f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/fal/src/fal/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ class App:
host_kwargs: ClassVar[dict[str, Any]] = {}

def __init_subclass__(cls, **kwargs):
cls.host_kwargs = kwargs
parent_settings = getattr(cls, "host_kwargs", {})
cls.host_kwargs = {**parent_settings, **kwargs}

if cls.__init__ is not App.__init__:
raise ValueError(
Expand Down

0 comments on commit 04cb05f

Please sign in to comment.