Skip to content

Fix entities module dependencies to main common file - #180

Merged
ubruhin merged 2 commits into
LibrePCB:masterfrom
hephaisto:fix-module-dependencies
Aug 12, 2026
Merged

Fix entities module dependencies to main common file#180
ubruhin merged 2 commits into
LibrePCB:masterfrom
hephaisto:fix-module-dependencies

Conversation

@hephaisto

Copy link
Copy Markdown
Contributor

Move all identifiers used in entities/* from common.py to entities/helper.py
Rationale: Sub-packages should not depend on files of the parent hierarchy.
Previously, files in entities used absolute import "common" which is ambiguous in some contexts.

Move all identifiers used in entities/* from common.py to
entities/helper.py
Rationale: Sub-packages should not depend on files of the parent
hierarchy.
Previously, files in entities used absolute import "common" which is
ambiguous in some contexts.
@ubruhin
ubruhin force-pushed the fix-module-dependencies branch from 54576c0 to 3f1315c Compare August 11, 2026 08:19

@ubruhin ubruhin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - I think generally this change makes sense. I have rebased this branch to master to ensure some additional checks are run on CI.

Currently I see two issues:

  • STRING_ESCAPE_SEQUENCES is now duplicated
  • CI is failing due to code formatting

@ubruhin ubruhin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ubruhin
ubruhin merged commit 7b0efb9 into LibrePCB:master Aug 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants