You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "AnandInguva (via GitHub)" <gi...@apache.org> on 2023/02/22 16:37:25 UTC

[GitHub] [beam] AnandInguva opened a new issue, #25591: [Task]: Update typehints to support Python 3.11

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

   ### What needs to happen?
   
   To support Python 3.11, we may need to update apache_beam/typehints to resolve any typehint related errors.
   
   Example:  apache_beam/typehints/trivial_inference_test fails with different errors. 
   ```
   self = <apache_beam.typehints.trivial_inference_test.TrivialInferenceTest testMethod=testBuildTupleUnpackWithCall>
   
       def testBuildTupleUnpackWithCall(self):
         # Lambda uses BUILD_TUPLE_UNPACK_WITH_CALL opcode in Python 3.6, 3.7.
         def fn(x1, x2, *unused_args):
           return x1, x2
       
   >     self.assertReturnType(
             typehints.Tuple[typehints.Union[str, float, int],
                             typehints.Union[str, float, int]],
             lambda x1,
             x2,
             _list: fn(x1, x2, *_list), [str, float, typehints.List[int]])
   
   trivial_inference_test.py:372: AssertionError
   ```
   
   Go through the Python 3.11 change log and modify the typehints code as necessary.
   
   
   ### Issue Priority
   
   Priority: 2 (default / most normal work should be filed as P2)
   
   ### Issue Components
   
   - [X] Component: Python SDK
   - [ ] Component: Java SDK
   - [ ] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [ ] Component: IO connector
   - [ ] Component: Beam examples
   - [ ] Component: Beam playground
   - [ ] Component: Beam katas
   - [ ] Component: Website
   - [ ] Component: Spark Runner
   - [ ] Component: Flink Runner
   - [ ] Component: Samza Runner
   - [ ] Component: Twister2 Runner
   - [ ] Component: Hazelcast Jet Runner
   - [ ] Component: Google Cloud Dataflow Runner


-- 
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: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on issue #25591: [Task]: Update typehints to support Python 3.11

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on issue #25591:
URL: https://github.com/apache/beam/issues/25591#issuecomment-1440443644

   Some the opcodes I encountered in test failures and added in python 3.11 :
   
   ```
   'COPY_FREE_VARS'
   'RESUME'
   'PUSH_NULL'
   'POP_JUMP_FORWARD_IF_FALSE'
   'BINARY_OP'
   'PRECALL'
   'MAKE_CELL'
   'RETURN_GENERATOR'
   ```
   


-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] jrmccluskey commented on issue #25591: [Task]: Update typehints to support Python 3.11

Posted by "jrmccluskey (via GitHub)" <gi...@apache.org>.
jrmccluskey commented on issue #25591:
URL: https://github.com/apache/beam/issues/25591#issuecomment-1699674427

   This was resolved by #25798 and #25795, just never got linked to this issue


-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] jrmccluskey closed issue #25591: [Task]: Update typehints to support Python 3.11

Posted by "jrmccluskey (via GitHub)" <gi...@apache.org>.
jrmccluskey closed issue #25591: [Task]: Update typehints to support Python 3.11
URL: https://github.com/apache/beam/issues/25591


-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org