Replies: 2 comments 1 reply
-
I'm open to suggestions for how to improve the error messages. For most of these messages, pyright already provides additional details that should help further clarify the top-level message. For example: x = [1, 2, 3]
x.append("hello") Error:
Do these additional details help? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Is there some way to ask pyright to explain why it inferred a certain type? I work right now in a part of the codebase without much types and it's very non-obvious about the decisions on inference that are made. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a little bit of a wage question, but still want to ask it.
I'm trying to migrate to a newer version of pyright and the error messages are just hard to comprehend
Some examples
Lots and lots of errors that mention generics... I'm considering myself reasonably educated about types, but I'm spending 10 minutes, 20 minutes looking into these errors, and I have no idea how to fix them 😆
So couple concrete questions:
Beta Was this translation helpful? Give feedback.
All reactions