Mypy error: Value of type "Optional[Any]" is not indexable [index] #1034
Unanswered
sergeyglazyrindev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello guys.
Could you please suggest me how to fix this error ?
error: Value of type "Optional[Any]" is not indexable [index]
in this line:
values_from_db here is asyncpg.Record
The problem is, I don't want to add to the lines with this issue, # type: ignore=index, wanna do that through mypy plugin, there are few hooks, but I don't understand which hook is suitable for this... Or maybe there's better solution ?
Beta Was this translation helpful? Give feedback.
All reactions