Skip to content

Commit 0abd2bc

Browse files
Googlercopybara-github
authored andcommitted
Resolve unsoundness caught by pytype --strict-none-binding.
Pytype was previously more permissive when variables were initialized to None but may have been re-assigned later. This change improves pytype's ability to catch unsoundness in the affected files. PiperOrigin-RevId: 538126469 Change-Id: I7d440de891f09d1de9d50d5522209d4ddff915cb
1 parent 20840a5 commit 0abd2bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_compression/python/layers/signal_conv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ def _correlate_down_valid(self, inputs, kernel):
653653
strides=strides, padding="VALID", data_format=data_format)
654654
# Perform remaining downsampling.
655655
slices = tuple(slice(None, None, s // gcf) for s in self.strides_down)
656-
if any(s.step > 1 for s in slices):
656+
if any(s.step > 1 for s in slices): # pytype: disable=unsupported-operands
657657
outputs = outputs[self._padded_tuple(slices, slice(None))]
658658
else:
659659
self._raise_notimplemented()

0 commit comments

Comments
 (0)