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
It turns out that variables, initialized with values right in the class declaration will be initialized on the class module import, not on the class creation. It may cause issues, so it is better to move initialization to constructors everywhere.
The text was updated successfully, but these errors were encountered:
pozitronik
changed the title
Move class variables initialization to constructor everywhere
Move class variables initializations to constructors everywhere
Sep 28, 2023
It turns out that variables, initialized with values right in the class declaration will be initialized on the class module import, not on the class creation. It may cause issues, so it is better to move initialization to constructors everywhere.
The text was updated successfully, but these errors were encountered: