Skip to content

Commit 4e0ad87

Browse files
committed
return type
1 parent 67c8349 commit 4e0ad87

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sdks/python/apache_beam/coders/coder_impl.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
if TYPE_CHECKING:
7575
import proto
7676
from apache_beam.transforms import userstate
77+
from apache_beam.transforms.window import BoundedWindow
7778
from apache_beam.transforms.window import IntervalWindow
7879

7980
try:
@@ -806,6 +807,7 @@ def estimate_size(self, unused_value, nested=False):
806807

807808
if not TYPE_CHECKING:
808809
IntervalWindow = None
810+
BoundedWindow = None
809811

810812

811813
class IntervalWindowCoderImpl(StreamCoderImpl):
@@ -834,7 +836,7 @@ def encode_to_stream(self, value, out, nested):
834836
out.write_var_int64(span_millis)
835837

836838
def decode_from_stream(self, in_, nested):
837-
# type: (create_InputStream, bool) -> IntervalWindow
839+
# type: (create_InputStream, bool) -> BoundedWindow
838840
if not TYPE_CHECKING:
839841
global IntervalWindow # pylint: disable=global-variable-not-assigned
840842
if IntervalWindow is None:

0 commit comments

Comments
 (0)