Skip to content

Commit

Permalink
Update dataclass_test to make CI pass.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 572535751
  • Loading branch information
hbq1 authored and ChexDev committed Oct 11, 2023
1 parent 8929f6a commit 7d5b0d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chex/_src/dataclass_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ class NestedClass:
k_arr: np.ndarray
k_dclass_with_map: Class
k_dclass_no_map: ClassWithoutMap
k_dict_factory: dict = dataclasses.field( # pylint:disable=g-bare-generic
k_dict_factory: dict = dataclasses.field( # pylint:disable=g-bare-generic,invalid-field-call
default_factory=lambda: dict(x='x', y='y'))
k_default: str = 'default_str'
k_non_init: int = dataclasses.field(default=1, init=False)
k_non_init: int = dataclasses.field(default=1, init=False) # pylint:disable=g-bare-generic,invalid-field-call
k_init_only: dataclasses.InitVar[int] = 10

def some_method(self, *args):
Expand Down

0 comments on commit 7d5b0d0

Please sign in to comment.