You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ .venv/bin/pyright --pythonpath=.venv/bin/python magic.py
magic.py:8:61 - error: Argument type is partially unknown
Argument corresponds to parameter "aws_access_key_id"infunction"client"
Argument type is "str | Unknown" (reportUnknownArgumentType)
magic.py:11:21 - information: Type of "resp" is "AssumeRoleResponseTypeDef | Unknown"
1 error, 0 warnings, 1 information
Passes the type checker on mypy. Removing the for loop also makes the type checker pass.
Having a type annotation in a for loop causes method calls on it to be threated as possibly unknown.
Code or Screenshots
Passes the type checker on mypy. Removing the for loop also makes the type checker pass.
The type annotations from
types-boto3[sts]
:The text was updated successfully, but these errors were encountered: