powerful-eye-58407
04/12/2023, 11:03 AMPants cannot infer owners for the following imports in the target <name>.pyi :
* typing_extensions (line: 17)
This is coming from an autogenerated type hints file:
if sys.version_info >= (3, 8):
import typing as typing_extensions
else:
import typing_extensions
Since this file was autogenerated, and our codebase is on python 3.8, is there a way to globally ignore this typing_extensions
import for .pyi
files? I can of course modify the file and add no-infer-dep
comment there, but I was wondering if there is more global way of doing that? Thanks!curved-television-6568
04/12/2023, 11:34 AM[python-infer].ignored_unowned_imports
option: https://github.com/pantsbuild/pants/pull/18094powerful-eye-58407
04/12/2023, 11:40 AM