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
Some functions can leave out arguments by specifying (explicit or implicit) None. For others, e.g. rings_generalized(target_indices=None) raises errors -- instead it expects ()` (or some other empty sequence).
This is confusing.
Expected behavior
In all cases where an argument is optional, it should accept None. In cases where () would work, both should work.
The text was updated successfully, but these errors were encountered:
Observed behavior
Some functions can leave out arguments by specifying (explicit or implicit)
None
. For others, e.g.rings_generalized(
target_indices=None) raises errors -- instead it expects
()` (or some other empty sequence).This is confusing.
Expected behavior
In all cases where an argument is optional, it should accept
None
. In cases where()
would work, both should work.The text was updated successfully, but these errors were encountered: