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
Also, IMHO a tuple is a better fit to represent a top-1 list, e.g. [(0, {1, 2})]. This can be accurately represented using the types from the typing module, i.e. List[Tuple[int, Set[int]]] where the currently documented convention can't.
The text was updated successfully, but these errors were encountered:
The documentation states that to represent a top-1 list, a Python
list
with an integer and a Pythonset
should be used. This leads to aTypeError
:Using another
list
instead works:Also, IMHO a
tuple
is a better fit to represent a top-1 list, e.g.[(0, {1, 2})]
. This can be accurately represented using the types from thetyping
module, i.e.List[Tuple[int, Set[int]]]
where the currently documented convention can't.The text was updated successfully, but these errors were encountered: