fix(models): break circular import with Rekor clients by MatteoFari · Pull Request #1667 · sigstore/sigstore-python · GitHub
Skip to content

fix(models): break circular import with Rekor clients - #1667

Closed
MatteoFari wants to merge 1 commit into
sigstore:mainfrom
MatteoFari:bugfix/rekor-clients-import
Closed

MatteoFari wants to merge 1 commit into
sigstore:mainfrom
MatteoFari:bugfix/rekor-clients-import

Conversation

@MatteoFari

Copy link
Copy Markdown

Summary

fixes: #1536
This PR fixes the circular import that required lazy imports in sigstore.models after moving additional trust/config types into models.py.

Release Note

Fixed a circular import between sigstore.models and Rekor client modules, removing the need for lazy imports when constructing transparency log clients.

Documentation

Signed-off-by: Matteo Fari <matteofari06@gmail.com>
@MatteoFari

MatteoFari commented Feb 3, 2026 •

Copy link
Copy Markdown
Author

@jku

jku commented Feb 4, 2026

Copy link
Copy Markdown
Member

sorry, it's been a little busy.

The PR moves the lazy imports to a different place -- maybe a slightly more appropriate one but it's still a lazy import to avoid the cycle, right?

It's quite possible that there is no clean way to avoid lazy imports here but I'm not sure this is an improvement.

@MatteoFari

Copy link
Copy Markdown
Author

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.

fix lazy import in models.py

2 participants