allow use of +=
manipulation on __all__
when __all__
is a tuple
#9479
Labels
+=
manipulation on __all__
when __all__
is a tuple
#9479
If you have a question about a behavior that you’re seeing in pyright, consider posting to the Pyright discussion forum.
Is your feature request related to a problem? Please describe.
I was attempting to add
asyncio.__all__
to typeshed. There's a lot of differences depending on python version, but pyright complains for each instance of__all__ += ("foo",)
. See: python/typeshed#13038Describe the solution you’d like
Pyright supports this if
__all__
is a list instead of a tuple. Is it possible to support this for tuple as well?The text was updated successfully, but these errors were encountered: