Skip to content

Commit

Permalink
Remove pytype generic workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
jheek committed Sep 7, 2022
1 parent fdd1d6f commit 70d845a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flax/core/lift.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,13 +315,13 @@ def swap(target):
@dataclasses.dataclass(frozen=True)
class In(Generic[T]):
"""Specifies a variable collection should only be lifted as input."""
axis: Any # pytype does not support generic variable annotation
axis: T


@dataclasses.dataclass(frozen=True)
class Out(Generic[T]):
"""Specifies a variable collection should only be lifted as output."""
axis: Any # pytype does not support generic variable annotation
axis: T


def _split_in_out_axes(xs: Mapping[CollectionFilter, Any]):
Expand Down

0 comments on commit 70d845a

Please sign in to comment.