Skip to content

Commit

Permalink
Add **init_kwargs to self.param type annotation.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 622872682
  • Loading branch information
Flax Team committed Apr 8, 2024
1 parent 39ce98f commit a1ffa00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flax/linen/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -1761,7 +1761,7 @@ def variable(

@overload
def param(
self, name: str, init_fn: Callable[..., T], *init_args,
self, name: str, init_fn: Callable[..., T], *init_args, **init_kwargs
) -> T:
...

Expand Down

0 comments on commit a1ffa00

Please sign in to comment.