Skip to content

fixes for the linter and unused imports #40254

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/sage/doctest/rif_tol.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def RIFtol(*args) -> RealIntervalFieldElement:
"""
global _RIFtol
if _RIFtol is None:
_RIFtol = RealIntervalField(1044)
_RIFtol = RealIntervalField(1044)
return _RIFtol(*args)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ from sage.graphs.base.c_graph cimport CGraph, CGraphBackend
from sage.graphs.graph_decompositions.slice_decomposition cimport \
extended_lex_BFS
from sage.groups.perm_gps.permgroup_element import PermutationGroupElement
from sage.misc.lazy_import import lazy_import
from sage.misc.random_testing import random_testing


Expand Down
1 change: 0 additions & 1 deletion src/sage/matrix/matrix_modn_sparse.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ from sage.rings.fast_arith cimport arith_int
from sage.rings.finite_rings.integer_mod cimport IntegerMod_int, IntegerMod_abstract
from sage.rings.integer cimport Integer
from sage.rings.integer_ring import ZZ
from sage.rings.rational_field import QQ
from sage.structure.element cimport Matrix

################
Expand Down
1 change: 0 additions & 1 deletion src/sage/matroids/graphic_matroid.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ from sage.matroids.matroid cimport Matroid
from copy import copy
from sage.matroids.utilities import newlabel, split_vertex, sanitize_contractions_deletions
from itertools import combinations
from sage.rings.integer import Integer
from sage.sets.disjoint_set cimport DisjointSet_of_hashables

cdef class GraphicMatroid(Matroid):
Expand Down
1 change: 0 additions & 1 deletion src/sage/misc/misc_c.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ AUTHORS:
# (at your option) any later version.
# https://www.gnu.org/licenses/
# ****************************************************************************
from copy import copy

from cpython.sequence cimport *
from cpython.list cimport *
Expand Down
1 change: 1 addition & 0 deletions src/sage/rings/lazy_series_ring.py
Original file line number Diff line number Diff line change
Expand Up @@ -4296,6 +4296,7 @@ def polylogarithm(self, z):

polylog = polylogarithm


def _skip_leading_zeros(iterator):
"""
Return an iterator which discards all leading zeros.
Expand Down
1 change: 0 additions & 1 deletion src/sage/rings/polynomial/polynomial_element.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -8873,7 +8873,6 @@ cdef class Polynomial(CommutativePolynomial):
sage: all(r.parent() is K for r in f.roots(multiplicities=False)) # needs sage.rings.finite_rings
True
"""
from sage.rings.finite_rings.finite_field_constructor import GF
K = self._parent.base_ring()

# If the base ring has a method _roots_univariate_polynomial,
Expand Down
Loading