ruff
127a4562 - [syntax-errors] Extend annotation checks to `await` (#17282)

Comment changes are shownComment changes are hidden
Commit
105 days ago
[syntax-errors] Extend annotation checks to `await` (#17282) Summary -- This PR extends the changes in #17101 to include `await` in the same positions. I also renamed the `valid_annotation_function` test to include `_py313` and explicitly passed a Python version to contrast it with the `_py314` version. Test Plan -- New test cases added to existing files.
Author
Parents
  • crates/ruff_python_parser
    • resources/inline
      • err
        • File
          invalid_annotation_class.py
        • File
          invalid_annotation_function.py
        • File
          invalid_annotation_function_py314.py
        • File
          invalid_annotation_type_alias.py
      • ok
        • File
          valid_annotation_class.py
        • File
          valid_annotation_function_py313.py
    • src
      • File
        semantic_errors.rs
    • tests/snapshots
      • invalid_syntax@invalid_annotation_class.py.snap
      • invalid_syntax@invalid_annotation_function.py.snap
      • invalid_syntax@invalid_annotation_function_py314.py.snap
      • invalid_syntax@invalid_annotation_type_alias.py.snap
      • valid_syntax@valid_annotation_class.py.snap
      • valid_syntax@valid_annotation_function_py313.py.snap