The GitHub Actions job "Lint" on tvm.git/lint-improvements has failed.
Run started by GitHub user tqchen (triggered by tqchen).

Head commit for run:
1f790acf0c278010435ae04db36884ac602b2d6b / tqchen <[email protected]>
support PEP 604 union types (X | Y) in runtime type checker

The ruff UP modernization converted typing.Union/Optional to PEP 604
syntax (X | Y, X | None), but the runtime type checker only recognized
typing.Union. When a PEP 604 union like tuple[str, int] | None reached
_type_check_atomic, isinstance() failed because it cannot handle
parameterized generics.

Fix: teach _Subtype.optional() and _Subtype.union() to also recognize
types.UnionType (Python 3.10+ PEP 604 unions), and restore Union[types]
in error reporting for _type_check_union.

Report URL: https://github.com/apache/tvm/actions/runs/22491514610

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to