[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix or ignore type errors generated by the next release of pytype.
Browse files Browse the repository at this point in the history
The next pytype release includes better support for quoted annotations, which
reveals type errors that were previously hidden due to pytype occasionally
treating such annotations as Any rather than the quoted type.

PiperOrigin-RevId: 284742182
Change-Id: Iba35edc283680295da815ee3c74a48eb67d158a0
  • Loading branch information
Sonnet Contributor authored and sonnet-copybara committed Dec 10, 2019
1 parent 1928424 commit 84817e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonnet/src/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

# Note that this is effectively treated as `Any`; see b/109648354.
TensorNest = Union[TensorLike, Iterable['TensorNest'],
Mapping[Text, 'TensorNest'],]
Mapping[Text, 'TensorNest'],] # pytype: disable=not-supported-yet

ActivationFn = Callable[[TensorLike], TensorLike]
Axis = Union[int, slice, Sequence[int]]
Expand Down

0 comments on commit 84817e5

Please sign in to comment.