You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test env details:
Python 3.11.3
Beam SDK version: 2.60.0
Hello! We want to use generic types as a type annotation for elements in Pardo in Python SDK to improve code readability, but it seems like Test Runner doesn't support that. Are there any options for how we can work around that?
Please find the reproduction snippet:
Create a file like /tmp/test_pardo.py
def __subclasscheck__(self, cls):
> raise TypeError("Subscripted generics cannot be used with"" class and instance checks")
E TypeError: Subscripted generics cannot be used with class and instance checks
Thank you
Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
Issue Components
Component: Python SDK
Component: Java SDK
Component: Go SDK
Component: Typescript SDK
Component: IO connector
Component: Beam YAML
Component: Beam examples
Component: Beam playground
Component: Beam katas
Component: Website
Component: Infrastructure
Component: Spark Runner
Component: Flink Runner
Component: Samza Runner
Component: Twister2 Runner
Component: Hazelcast Jet Runner
Component: Google Cloud Dataflow Runner
The text was updated successfully, but these errors were encountered:
Label generic type annotations cannot be managed because it does not exist in the repo. Please check your spelling.
m-morozov-kw
changed the title
[Bug]: Test runner(Oython SDK) fails when generic type is specified as a type for pardo element
[Bug]: Test runner(Python SDK) fails when generic type is specified as a type for pardo element
Nov 22, 2024
What happened?
Test env details:
Python 3.11.3
Beam SDK version: 2.60.0
Hello! We want to use generic types as a type annotation for elements in Pardo in Python SDK to improve code readability, but it seems like Test Runner doesn't support that. Are there any options for how we can work around that?
Please find the reproduction snippet:
Create a file like /tmp/test_pardo.py
Run it as a test
Expected: test passes
Actual behavior:
Thank you
Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
Issue Components
The text was updated successfully, but these errors were encountered: