ronshapiro opened a new issue, #24052:
URL: https://github.com/apache/beam/issues/24052

   ### What happened?
   
   Trying to use typing.Iterable[T] in Beam code works fine, but 
collections.abc.Iterable[T] does not. 
   
   I imagine that the special casing of the typing module should be extended to 
collections.abc as well.
   
   
   ```python
   print(typehints.is_consistent_with(Iterable[str], Iterable[Any]))
   > True
   print(typehints.is_consistent_with(collections.abc.Iterable[str], 
Iterable[Any]))
   > False
   print(typehints.is_consistent_with(collections.abc.Iterable[str], 
collections.abc.Iterable[Any]))
   > TypeError: issubclass() argument 2 cannot be a parameterized generic
   ```
   
   ### Issue Priority
   
   Priority: 2
   
   ### Issue Component
   
   Component: sdk-py-core


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to