Skip to content

Commit 5811c40

Browse files
rchen152copybara-github
authored andcommitted
Fix new type errors in Python 3.10.
PiperOrigin-RevId: 462054819 Change-Id: Ie8e31e38266a6bd75b3fedce478e96c052a4f38e
1 parent 91a6254 commit 5811c40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tensorflow_compression/python/layers/signal_conv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# ==============================================================================
1515
"""Swiss army tool for convolutions."""
1616

17-
from typing import Any, Callable, Dict, Optional, Tuple, Union
17+
from typing import Any, Callable, Dict, NoReturn, Optional, Tuple, Union
1818
import tensorflow as tf
1919
from tensorflow_compression.python.layers import parameters
2020
from tensorflow_compression.python.ops import padding_ops
@@ -571,7 +571,7 @@ def _padded_tuple(self, iterable, fill) -> Tuple[Any]:
571571
else:
572572
return (fill,) + tuple(iterable) + (fill,)
573573

574-
def _raise_notimplemented(self):
574+
def _raise_notimplemented(self) -> NoReturn:
575575
raise NotImplementedError(
576576
f"The provided combination of {type(self).__name__} arguments is not "
577577
f"currently implemented (filters={self.filters}, "

0 commit comments

Comments
 (0)