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

Head commit for run:
92678db9274c7b3b273262e623a9fb656b09f00f / 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/22491735988

With regards,
GitHub Actions via GitBox


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

Reply via email to