Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion chex/_src/asserts.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@

import collections
import collections.abc
from collections.abc import Sequence
import functools
import inspect
import traceback
from typing import Any, Callable, List, Optional, Sequence, Set, Union, cast
from typing import Any, Callable, List, Optional, Set, Union, cast
import unittest
from unittest import mock

Expand Down
3 changes: 2 additions & 1 deletion chex/_src/asserts_chexify_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
import sys
import threading
import time
from typing import Any, Optional, Sequence, Type
from typing import Any, Optional, Type
from collections.abc import Sequence

from absl.testing import absltest
from absl.testing import parameterized
Expand Down
4 changes: 2 additions & 2 deletions chex/_src/asserts_internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@

import collections
import collections.abc
from collections.abc import Hashable
from collections.abc import Hashable, Sequence
import functools
import re
import threading
import traceback
from typing import Any, Sequence, Union, Callable, List, Optional, Set, Tuple, Type
from typing import Any, Union, Callable, List, Optional, Set, Tuple, Type

from absl import logging
from chex._src import pytypes
Expand Down
3 changes: 2 additions & 1 deletion chex/_src/dataclass_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
import dataclasses
import pickle
import sys
from typing import Any, Generic, Mapping, TypeVar
from typing import Any, Generic, TypeVar
from collections.abc import Mapping
import unittest

from absl.testing import absltest
Expand Down
3 changes: 2 additions & 1 deletion chex/_src/fake.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
import inspect
import os
import re
from typing import Any, Callable, Iterable, Optional, Union
from typing import Any, Callable, Optional, Union
from collections.abc import Iterable
from unittest import mock
from absl import flags
import jax
Expand Down
3 changes: 2 additions & 1 deletion chex/_src/pytypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
# ==============================================================================
"""Type definitions to use for type annotations."""

from typing import Any, Iterable, Mapping, Sequence, Union
from typing import Any, Union
from collections.abc import Iterable, Mapping, Sequence

import jax
import numpy as np
Expand Down
3 changes: 2 additions & 1 deletion chex/_src/restrict_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"""
import contextlib
import functools
from typing import Callable, Optional, Sequence
from typing import Callable, Optional
from collections.abc import Sequence

from jax._src import compiler

Expand Down
3 changes: 2 additions & 1 deletion chex/_src/variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
import functools
import inspect
import itertools
from typing import Any, Sequence
from typing import Any
from collections.abc import Sequence
import unittest

from absl import flags
Expand Down