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
The first and next variables are compared to None and set to a bool value. The isinstance(..., str) looks like it will never succeed (based on my testing).
defitems(self) ->Iterator[AnyObject]:
items=self._delegate.json_field('orderedItems'ifself.is_ordered() else'items')
ifitemsisnotNone:
# ...eliffirst:=self._delegate.json_field('first') isnotNone: # <-- first will always be a boolifisinstance(first,str): # <-- is never true?first_collection=AnyObject(first).as_collection()
yieldfromfirst_collection.items()
else:
raiseException(f'Cannot process yet: {first}')
elifnext:=self._delegate.json_field('next') isnotNone:
# similar issue for next ...
The text was updated successfully, but these errors were encountered:
The
first
andnext
variables are compared toNone
and set to a bool value. Theisinstance(..., str)
looks like it will never succeed (based on my testing).The text was updated successfully, but these errors were encountered: