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
This generates an error false positive which is reported on the wrong line so there are likely two bugs:
fromtypingimportUnion, TupleclassC:
def__getattr__(self, name):
passclassD:
deff(self) ->C: # "C" has no attribute "__iter__" (not iterable)returnC()
defg(self) ->None:
a, b=self.f() # This is where the error originates from
C should be treated as iterable, since it defines __getattr__.