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
{{ message }}
Repository navigation
Instances of classes that define __iter__ = None and __getitem__ should not be iterable. #11220
Describe the bug
Pyright still allows instances of a class to be iterable if the class defines __getitem__ even if the class also defines __iter__ = None.
Attempting to iterate over an instance of such a class will lead to a runtime TypeError.
If your code relies on symbols that are imported from a third-party library, include the associated import statements and specify which versions of those libraries you have installed.
VS Code extension or command-line
As a Node binary - [email protected]
Activity