Pyright should narrow except*
to ExceptionGroup with non-base exceptions
#9466
Labels
addressed in next version
Issue is fixed and will appear in next published version
enhancement request
New feature or request
Discussed in #9455
Originally posted by jakkdl November 13, 2024
It was changed from
ExceptionGroup
toBaseExceptionGroup
in microsoft/pylance-release#4183Related typeshed issue python/typeshed#12972
I'm not 100% if the typeshed issue will resolve
except*
handling in pyright, in case it would then we can directly resolve/close this. But in case it's hard-coded to always beBaseExceptionGroup
and won't be changed by typeshed messing with__new__
then you might want to fix it right away.repro:
The text was updated successfully, but these errors were encountered: