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
Code here contains unnecessary or incorrect assertion. It asserts that the argument items is of type list, while typing information requires any sequence. By the usage of items there is no reason that it should be a list, other sequences should be accepted as well. In above case, tuple triggers the error.
What you wrote is simply not correct, because signature allows any sequence, so it should allow tuple as well. If it should allow only list (though as I've written above, there is no reason for this), then signature for items should be list, not sequence.
Version
1.49.1
Steps to reproduce
Create assertion on multiple elements. For example for html
write assertion as:
Expected behavior
No errors, assertion passes.
Actual behavior
Additional context
Code here contains unnecessary or incorrect assertion. It asserts that the argument
items
is of type list, while typing information requires any sequence. By the usage ofitems
there is no reason that it should be a list, other sequences should be accepted as well. In above case, tuple triggers the error.Environment
The text was updated successfully, but these errors were encountered: