Skip to content

Commit

Permalink
return type
Browse files Browse the repository at this point in the history
  • Loading branch information
damccorm committed Sep 27, 2024
1 parent 67c8349 commit 4e0ad87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdks/python/apache_beam/coders/coder_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
if TYPE_CHECKING:
import proto
from apache_beam.transforms import userstate
from apache_beam.transforms.window import BoundedWindow
from apache_beam.transforms.window import IntervalWindow

try:
Expand Down Expand Up @@ -806,6 +807,7 @@ def estimate_size(self, unused_value, nested=False):

if not TYPE_CHECKING:
IntervalWindow = None
BoundedWindow = None


class IntervalWindowCoderImpl(StreamCoderImpl):
Expand Down Expand Up @@ -834,7 +836,7 @@ def encode_to_stream(self, value, out, nested):
out.write_var_int64(span_millis)

def decode_from_stream(self, in_, nested):
# type: (create_InputStream, bool) -> IntervalWindow
# type: (create_InputStream, bool) -> BoundedWindow
if not TYPE_CHECKING:
global IntervalWindow # pylint: disable=global-variable-not-assigned
if IntervalWindow is None:
Expand Down

0 comments on commit 4e0ad87

Please sign in to comment.