Skip to content

Update global_vars.py to add self.refs instead of initialising later.#583

Merged
set-soft merged 1 commit intohildogjr:masterfrom
ymich9963:master
Sep 5, 2025
Merged

Update global_vars.py to add self.refs instead of initialising later.#583
set-soft merged 1 commit intohildogjr:masterfrom
ymich9963:master

Conversation

@ymich9963
Copy link
Contributor

In PartGroup currently there is no self.refs, but it gets initialised later in the code, see here,

grp.refs = [ref] # Init list of refs with first ref.

For better readability and for helping dev tools (linters, autocomplete, etc.) to work properly I believe this commit necessary.

@set-soft
Copy link
Collaborator

set-soft commented Sep 5, 2025

This is Python, if a tool relies on such a thing then is incomplete.
But the change doesn't really add any important overhead (the code already pollutes the heap like crazy) so I take it.

@set-soft set-soft merged commit 813d188 into hildogjr:master Sep 5, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants