You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gh-40881: sage.categories.finite_fields: don't import from integer_ring
Importing `ZZ` from the integer ring creates an import cycle,
```
integer_ring -> integer
-> rational
-> rational_field
-> categories/finite_fields
-> integer_ring
```
I noticed this because the cycle has started causing an `ImportError`
when I attempt to import `ZZ`. This commit doesn't fix the problem
(there are other cycles), but it is minimally invasive and does improve
the import graph a tiny bit.
Edit: a better fix for this would be to break the dependence of integers
on rationals, but that would be a much larger change.
URL: #40881
Reported by: Michael Orlitzky
Reviewer(s): Dima Pasechnik
0 commit comments