Skip to content

Commit 39ba35c

Browse files
committed
typ: fix annotations for real_roots
1 parent 52967d2 commit 39ba35c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/flint/typing.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
)
3030

3131
from flint.types.fmpz import fmpz
32+
from flint.types.arb import arb
33+
from flint.types.acb import acb
3234

3335
__all__ = [
3436
# Abstract base classes
@@ -131,10 +133,8 @@ def is_one(self) -> bool: ...
131133
def is_constant(self) -> bool: ...
132134
def is_gen(self) -> bool: ...
133135
def roots(self) -> list[tuple[_Tscalar, int]] | list[_Tscalar]: ...
134-
# Should be list[arb]:
135-
def real_roots(self) -> list[Any]: ...
136-
# Should be list[acb]:
137-
def complex_roots(self) -> list[Any]: ...
136+
def real_roots(self) -> list[arb]: ...
137+
def complex_roots(self) -> list[acb]: ...
138138
def derivative(self) -> Self: ...
139139

140140

0 commit comments

Comments
 (0)