What would you like to happen?
When a function used in beam.Map() has args default to None, the type hint would complain very confusing errors of "TypeError: issubclass() arg 1 must be a class". See code below:
def fn(v, arg=None):
pass
# Without specifying `arg=None`, the type error shows up.
pc | 'map' >> beam.Map(fn, arg=None)
This should be improved to handle the None default arg.
Issue Priority
Priority: 3 (nice-to-have improvement)
Issue Components
What would you like to happen?
When a function used in beam.Map() has args default to None, the type hint would complain very confusing errors of "TypeError: issubclass() arg 1 must be a class". See code below:
This should be improved to handle the
Nonedefault arg.Issue Priority
Priority: 3 (nice-to-have improvement)
Issue Components