Skip to content

Commit

Permalink
fix pytype error
Browse files Browse the repository at this point in the history
  • Loading branch information
cgarciae committed Aug 22, 2023
1 parent 657f25b commit 7205cc1
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 @@ -891,7 +891,7 @@ def module_field(*, kw_only: bool = False, default: Optional[Any] = ...) -> Any:
# * Other attributes are annotated for completeness. Because we are using
# the `if typing.TYPE_CHECKING` pattern, these annotations are not present
# at runtime so they don't affect the dataclass behavior.
@dataclass_transform(field_specifiers=(module_field,))
@dataclass_transform(field_specifiers=(module_field,)) # type: ignore[literal-required]
class ModuleBase:
if typing.TYPE_CHECKING:
scope: Optional[Scope]
Expand Down

0 comments on commit 7205cc1

Please sign in to comment.