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
Revert "ref(flags): register LD hook in setup instead of init, and don't chec…" (#3900)
Mutating a class attribute on `__init__` violates encapsulation and will lead to strange errors. We need to rethink how we want to implement this before we merge any code.
A simple reproduction of the issue:
```python
>>> class X:
... y = 0
... def __init__(self, z):
... self.__class__.y = z
...
>>> a = X(1)
>>> b = X(2)
>>> X.y
2
>>> a.y
2
>>> b.y
2
```
Reverts #3890
This reverts commit c3516db.
Co-authored-by: Anton Pirker <[email protected]>
0 commit comments