Replies: 1 comment 5 replies
-
The I'd need to see more of the function in question to say whether it's a bug. Yes, please file a bug and post a minimal, self-contained example. Thanks! |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Complete error message is:
The referenced line -- and some preceding ones -- is:
Now,
_thread_exception
had been annotated as such:I am totally puzzled by this error message:
Never
in the code._thread_exception
is marked asUnion[None, Exception]
, theif ... is not None
line immediately before theraise
line should've strongly indicated that_thread_exception
is an Exception.a. Why doesn't pyright pick this up?
b. Should I file a bug?
Beta Was this translation helpful? Give feedback.
All reactions