Skip to content

Commit 1a6d87c

Browse files
committed
Make mpoly and series protocols private
1 parent a2e6169 commit 1a6d87c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/flint/typing.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,15 @@
3434
"flint_mpoly",
3535
"flint_mpoly_context",
3636
"flint_series",
37+
3738
# Protocols
3839
"elem_p",
3940
"scalar_p",
4041
"poly_p",
41-
"mpoly_p",
42-
"mpoly_context_p",
43-
"series_p",
42+
# "mpoly_p",
43+
# "mpoly_context_p",
44+
# "series_p",
45+
4446
# Types
4547
"Ordering",
4648
"fmpz",
@@ -147,7 +149,7 @@ def factor_squarefree(self) -> tuple[_Tscalar, list[tuple[Self, int]]]: ...
147149
def deflation(self) -> tuple[Self, int]: ...
148150

149151

150-
class mpoly_p(elem_p, Protocol[_Tctx, _Telem, _Telem_coerce]):
152+
class _mpoly_p(elem_p, Protocol[_Tctx, _Telem, _Telem_coerce]):
151153
"""FLINT multivariate polynomial Protocol."""
152154
def __init__(
153155
self,
@@ -226,7 +228,7 @@ def project_to_context(
226228
) -> Self: ...
227229

228230

229-
class mpoly_context_p(
231+
class _mpoly_context_p(
230232
elem_p, Protocol[_Tmpoly, _Telem_co, _Telem_coerce_contra]
231233
):
232234
"""FLINT multivariate polynomial context protocol."""
@@ -256,7 +258,7 @@ def from_context(
256258
) -> _Sctx: ...
257259

258260

259-
class series_p(elem_p, Protocol[_Telem]):
261+
class _series_p(elem_p, Protocol[_Telem]):
260262
"""FLINT univariate power series."""
261263

262264
def __iter__(self) -> Iterator[_Telem]: ...

0 commit comments

Comments
 (0)