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
Access of exceptions on a MultiError instance elicits "no-member" error from Pylint.
I believe it's because MultiError __new__ is merely mutating the result of BaseException.__new__(MultiError). I'd address it by making a proper __init__() constructor.
Activity
oremanj commentedon May 29, 2019
As I pointed out in that PR, using
__init__with MultiError is tricky because of the behavior whereMultiError([e])just returnse.Is pylint happier if you write something like this?
belm0 commentedon May 29, 2019
@oremanj thank you, would have taken me a long time to figure that out.
I'd rather put an explicit guard in init than a workaround which may only satisfy some linters.
At the least, trio should have an explicit test for the solitary MultiError case.