Skip to content

Commit

Permalink
fix kwargs merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Xynonners committed Aug 16, 2023
1 parent 47a8e53 commit 71044df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fletbox/fletbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def app(self, target:Callable=stub, **kwargs) -> None:
#target again
self.target = target
#merge app kwargs with init kwargs
self.kwargs = {**kwargs, **self.kwargs}
self.kwargs.update(kwargs)
#repopulate funcs via wrappers
for wrapper in self.funcs.values(): wrapper()
self.router = BaseRouter([*self.funcs.keys()], catchall=self.catchall)
Expand Down

0 comments on commit 71044df

Please sign in to comment.