Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move class variables initializations to constructors everywhere #73

Open
pozitronik opened this issue Sep 28, 2023 · 0 comments
Open

Move class variables initializations to constructors everywhere #73

pozitronik opened this issue Sep 28, 2023 · 0 comments
Assignees
Labels
dev 🧑‍💻Developer issues (todos, experiments, styling, etc)

Comments

@pozitronik
Copy link
Owner

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.

@pozitronik pozitronik added the dev 🧑‍💻Developer issues (todos, experiments, styling, etc) label Sep 28, 2023
@pozitronik pozitronik self-assigned this Sep 28, 2023
@pozitronik pozitronik changed the title Move class variables initialization to constructor everywhere Move class variables initializations to constructors everywhere Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev 🧑‍💻Developer issues (todos, experiments, styling, etc)
Projects
None yet
Development

No branches or pull requests

1 participant