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
Pytype requires an object's __dir__ method to return list[str], while Iterable[str] should be sufficient, according to the Python datamodel and typeshed's builtins.pyi.
Pytype requires an object's
__dir__
method to returnlist[str]
, whileIterable[str]
should be sufficient, according to the Python datamodel and typeshed's builtins.pyi.The issue seems to be in pytype/stubs/builtins/builtins.pytd
For example, pytype incorrectly flags an error in the following test fragment:
Result:
The text was updated successfully, but these errors were encountered: