This is an archive of the discontinued LLVM Phabricator instance.

Fixed mypy type errors in MLIR Python type stubs
ClosedPublic

Authored by superbobry on Mar 31 2022, 2:12 AM.

Details

Summary

This commit fixes or disables all errors reported by

python3 -m mypy -p mlir --show-error-codes

Note that unhashable types cannot be currently expressed in a way compatible
with typeshed. See https://github.com/python/typeshed/issues/6243 for details.

Diff Detail

Event Timeline

superbobry created this revision.Mar 31 2022, 2:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 31 2022, 2:12 AM
superbobry requested review of this revision.Mar 31 2022, 2:12 AM
ftynse accepted this revision.Mar 31 2022, 2:20 AM
This revision is now accepted and ready to land.Mar 31 2022, 2:20 AM
This revision was landed with ongoing or failed builds.Mar 31 2022, 2:56 AM
This revision was automatically updated to reflect the committed changes.

Can you please revert the init file. Having the _mlir_libs directory be a namespace package is an explicit decision that is load bearing for certain integrations, iirc.

Thanks for type annotation fixes!