-
-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sage.{categories,matrix,structure}: Replace imports from sage.*.all for namespace packages #34949
Milestone
Comments
Commit: |
comment:3
|
comment:5
I think these changes are to blame: diff --git a/src/sage/structure/element.pyx b/src/sage/structure/element.pyx
index e9430f0..92e83bd 100644
--- a/src/sage/structure/element.pyx
+++ b/src/sage/structure/element.pyx
@@ -4047,8 +4053,8 @@ cdef class PrincipalIdealDomainElement(DedekindDomainElement):
right = py_scalar_to_element(right)
if not isinstance(right, Element):
right = right.sage()
- if not ((<Element>right)._parent is self._parent):
- from sage.arith.all import gcd
+ from sage.arith.misc import GCD as gcd
+ from sage.arith.misc import GCD as gcd
return coercion_model.bin_op(self, right, gcd)
return self._gcd(right)
@@ -4081,8 +4087,8 @@ cdef class PrincipalIdealDomainElement(DedekindDomainElement):
right = py_scalar_to_element(right)
if not isinstance(right, Element):
right = right.sage()
- if not ((<Element>right)._parent is self._parent):
- from sage.arith.all import lcm
+ from sage.arith.functions import lcm
+ from sage.arith.functions import lcm
return coercion_model.bin_op(self, right, lcm)
return self._lcm(right) |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:8
Thanks, fixed. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed author from Alex Chandler to Alex Chandler, Matthias Koeppe |
The branch is now on PR #35012 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using
./sage -fiximports
from #34945.Also remove trailing whitespace in the affected files.
Part of Meta-ticket #34201
CC: @alexchandler100 @tscrim @fchapoton
Component: refactoring
Author: Alex Chandler, Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/34949
The text was updated successfully, but these errors were encountered: