Skip to content

refactor: create invert tags helper - #224

Merged
jpbrodrick89 merged 2 commits into
mainfrom
jpb/invert-tags-helper
Jun 1, 2026
Merged

refactor: create invert tags helper#224
jpbrodrick89 merged 2 commits into
mainfrom
jpb/invert-tags-helper

Conversation

@jpbrodrick89

@jpbrodrick89 jpbrodrick89 commented May 26, 2026

Copy link
Copy Markdown
Collaborator

This mirrors the existing transpose_tags helper and simplifies the logic in _solve.py. The main goal is unifying tags logic so if a developer adds a new tag (e.g. the proposed circulant_tag from discussions with @BalzaniEdoardo) they don't need to trace as much of the codebase. The tags_from_checks helper is the most janky due to its circular import with _operatory.py (solved with lazy importing and TYPE_CHECKING conditionals). Happy to move that to _operator.py if you prefer.

@patrick-kidger

Copy link
Copy Markdown
Owner

This LGTM I think! No strong feelings on jankiness :)

@jpbrodrick89
jpbrodrick89 merged commit edfc08f into main Jun 1, 2026
1 check passed
@patrick-kidger
patrick-kidger deleted the jpb/invert-tags-helper branch June 1, 2026 07:17
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