chilly-holiday-77415
01/25/2023, 11:16 AM11:11:33.65 [WARN] Pants cannot infer owners for the following imports in the target <..>/stepfn.py:
* mypy_boto3_stepfunctions.client.SFNClient (line: 7)
I’m using type stubs mapping here, which makes mypy happy but still emits the above warning - but I can’t also use module_mapping
- how should I avoid that warning? Everything works at runtime, but I’d rather not go and comment each import line if there’s a better way 🙂
type_stubs_module_mapping={
"boto3-stubs": ["boto3"],
},
enough-analyst-54434
01/25/2023, 11:20 AMenough-analyst-54434
01/25/2023, 11:21 AMchilly-holiday-77415
01/25/2023, 11:32 AMenough-analyst-54434
01/25/2023, 11:35 AMenough-analyst-54434
01/25/2023, 11:37 AMboto3-stubs[stepfunctions]
for mypy setup.chilly-holiday-77415
01/25/2023, 11:42 AMboto3-stubs = {extras = ["secretsmanager", "stepfunctions", "s3"], version = "*"}
enough-analyst-54434
01/25/2023, 11:45 AMpoetry export
a lockfile you configure with Pants or do you just use poetry_requirements
with no lockfile?enough-analyst-54434
01/25/2023, 11:50 AMrefined-addition-53644
01/25/2023, 11:59 AM"boto3-stubs": ["mypy_boto3_stepfunctions"]
chilly-holiday-77415
01/25/2023, 11:59 AMpoetry_requirements()
source, but a pants lockfilerefined-addition-53644
01/25/2023, 12:02 PMpoetry_requirements(
module_mapping={
"boto3-stubs": ["mypy_boto3_stepfunctions"]
},
)
chilly-holiday-77415
01/25/2023, 12:09 PM