Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-6983 Python 3.6 Support
  3. BEAM-6877

TypeHints Py3 Error: Type inference tests fail on Python 3.6 due to bytecode changes

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.15.0
    • Component/s: sdk-py-core
    • Labels:
      None

      Description

      Type inference doesn't work on Python 3.6 due to bytecode to wordcode changes.

      Type inference always returns Any on Python 3.6, so this is not critical.

      Affected tests are:
      transforms.ptransform_test:

      • test_combine_properly_pipeline_type_checks_using_decorator
      • test_mean_globally_pipeline_checking_satisfied
      • test_mean_globally_runtime_checking_satisfied
      • test_count_globally_pipeline_type_checking_satisfied
      • test_count_globally_runtime_type_checking_satisfied
      • test_pardo_type_inference
      • test_pipeline_inference
      • test_inferred_bad_kv_type

      typehints.trivial_inference_test:

      • all tests in TrivialInferenceTest

      io.gcp.pubsub_test.TestReadFromPubSubOverride:

      • test_expand_with_other_options
      • test_expand_with_subscription
      • test_expand_with_topic

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                udim Udi Meiri
                Reporter:
                RobbeSneyders Robbe
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 14.5h
                  14.5h