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 following minimal example fails on rattr main but should pass. This fails as visit_ClassAssign expects that all assignments with a class in the RHS will be one-to-one.
Support for many-to-many may be out of scope (see footnote), but the simplest case below should pass.
In short the issue is that many-to-many involves implicit unpacking (which is runtime so out-of-scope) and in python we can get rather yucky with it, take this for example:
In [1]: class MyClass:
...: def __new__(cls):
...: return [1, 2]
...:
...: a, b = [*MyClass()]
In [2]: a
Out[2]: 1
In [3]: b
Out[3]: 2
The text was updated successfully, but these errors were encountered:
The following minimal example fails on rattr main but should pass. This fails as
visit_ClassAssign
expects that all assignments with a class in the RHS will be one-to-one.Support for many-to-many may be out of scope (see footnote), but the simplest case below should pass.
Footnote
In short the issue is that many-to-many involves implicit unpacking (which is runtime so out-of-scope) and in python we can get rather yucky with it, take this for example:
The text was updated successfully, but these errors were encountered: