Skip to content

Commit 718b1fc

Browse files
committed
Include needed classes for each flint type
1 parent 8b1190f commit 718b1fc

20 files changed

+33
-0
lines changed

src/flint/acb.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from flint.flint_base.flint_base cimport flint_scalar
12
from flint._global_context cimport getprec, getcap
23

34
cdef int acb_set_python(acb_t x, obj, bint allow_conversion):

src/flint/acb_mat.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from flint._global_context cimport getprec, getcap
2+
from flint.flint_base.flint_base cimport flint_mat
23

34
cdef acb_mat_coerce_operands(x, y):
45
if isinstance(y, (fmpz_mat, fmpq_mat, arb_mat)):

src/flint/acb_poly.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from flint._global_context cimport getprec, getcap
2+
from flint.flint_base.flint_base cimport flint_poly
23

34
cdef acb_poly_coerce_operands(x, y):
45
if isinstance(y, (int, long, float, complex, fmpz, fmpq, arb, acb, fmpz_poly, fmpq_poly, arb_poly)):

src/flint/acb_series.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from flint._global_context cimport getprec, getcap
2+
from flint.flint_base.flint_base cimport flint_series
23

34
cdef acb_series_coerce_operands(x, y):
45
if isinstance(y, (int, long, float, complex, fmpz, fmpz_poly, fmpz_series, fmpq, fmpq_poly, fmpq_series, arb, arb_poly, arb_series, acb, acb_poly)):

src/flint/arb.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from cpython.version cimport PY_MAJOR_VERSION
2+
23
from flint._global_context cimport getprec, getcap
4+
from flint.flint_base.flint_base cimport flint_scalar
35
from flint.utils.conversion cimport chars_from_str, str_from_chars
46

57
cdef _str_trunc(s, trunc=0):

src/flint/arb_mat.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from flint._global_context cimport getprec, getcap
2+
from flint.flint_base.flint_base cimport flint_mat
23

34
cdef arb_mat_coerce_operands(x, y):
45
if isinstance(y, (fmpz_mat, fmpq_mat)):

src/flint/arb_poly.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from flint._global_context cimport getprec, getcap
2+
from flint.flint_base.flint_base cimport flint_poly
23

34
cdef arb_poly_coerce_operands(x, y):
45
if isinstance(y, (int, long, float, fmpz, fmpq, arb, fmpz_poly, fmpq_poly)):

src/flint/arb_series.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from flint._global_context cimport getprec, getcap
2+
from flint.flint_base.flint_base cimport flint_series
23

34
cdef arb_series_coerce_operands(x, y):
45
if isinstance(y, (int, long, float, fmpz, fmpz_poly, fmpz_series, fmpq, fmpq_poly, fmpq_series, arb, arb_poly)):

src/flint/fmpq.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from flint.flint_base.flint_base cimport flint_scalar
2+
13
cdef any_as_fmpq(obj):
24
if typecheck(obj, fmpq):
35
return obj

src/flint/fmpq_mat.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from flint.flint_base.flint_base cimport flint_mat
2+
13
cdef any_as_fmpq_mat(obj):
24
if typecheck(obj, fmpq_mat):
35
return obj

0 commit comments

Comments
 (0)