Skip to content

Commit

Permalink
Expand scope for pylint: disable=not-supported-yet.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 375493980
Change-Id: Ia9188f01a255ca607bcf0d3d06a1de3ab3fd7a83
  • Loading branch information
fastturtle authored and copybara-github committed May 24, 2021
1 parent 46877a9 commit b7c1c4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion acme/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@
NestedArray = Any
NestedTensor = Any

# pytype: disable=not-supported-yet
NestedSpec = Union[
specs.Array,
Iterable['NestedSpec'],
Mapping[Any, 'NestedSpec'], # pytype: disable=not-supported-yet
Mapping[Any, 'NestedSpec'],
]
# pytype: enable=not-supported-yet

# TODO(b/144763593): Replace all instances of nest with the tensor/array types.
Nest = Union[NestedArray, NestedTensor, NestedSpec]
Expand Down

0 comments on commit b7c1c4b

Please sign in to comment.