Unverified Commit 6ce51599 authored by Sergei Lebedev's avatar Sergei Lebedev Committed by GitHub
Browse files

[MLIR][Python] Use ir.Value directly instead of _SubClassValueT (#82341)

_SubClassValueT is only useful when it is has >1 usage in a signature.
This was not true for the signatures produced by tblgen.

For example

def call(result, callee, operands_, *, loc=None, ip=None) ->
_SubClassValueT:
        ...

here a type checker does not have enough information to infer a type
argument for _SubClassValueT, and thus effectively treats it as Any.
parent 6d160a49
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment