@@ -420,7 +420,7 @@ class MultizetaValues(Singleton):
420
420
sage: parent(M((2,3,4,5), prec=128))
421
421
Real Field with 128 bits of precision
422
422
"""
423
- def __init__ (self ):
423
+ def __init__ (self ) -> None :
424
424
"""
425
425
When first called, pre-compute up to weight 8 at precision 1024.
426
426
@@ -443,7 +443,7 @@ def __repr__(self) -> str:
443
443
"""
444
444
return f"Cached multiple zeta values at precision { self .prec } up to weight { self .max_weight } "
445
445
446
- def reset (self , max_weight = 8 , prec = 1024 ):
446
+ def reset (self , max_weight = 8 , prec = 1024 ) -> None :
447
447
r"""
448
448
Reset the cache to its default values or to given arguments.
449
449
@@ -464,7 +464,7 @@ def reset(self, max_weight=8, prec=1024):
464
464
self .max_weight = int (max_weight )
465
465
self ._data = pari .zetamultall (self .max_weight , precision = self .prec )
466
466
467
- def update (self , max_weight , prec ):
467
+ def update (self , max_weight , prec ) -> None :
468
468
"""
469
469
Compute and store more values if needed.
470
470
@@ -550,7 +550,7 @@ def __call__(self, index, prec=None, reverse=True):
550
550
Values = MultizetaValues ()
551
551
552
552
553
- def extend_multiplicative_basis (B , n ) -> Iterator :
553
+ def extend_multiplicative_basis (B , n ) -> Iterator [ tuple ] :
554
554
"""
555
555
Extend a multiplicative basis into a basis.
556
556
@@ -647,7 +647,7 @@ class Multizetas(CombinatorialFreeModule):
647
647
sage: z
648
648
ζ(1,2,3)
649
649
"""
650
- def __init__ (self , R ):
650
+ def __init__ (self , R ) -> None :
651
651
"""
652
652
TESTS::
653
653
@@ -726,7 +726,7 @@ def some_elements(self) -> tuple:
726
726
"""
727
727
return self ([]), self ([2 ]), self ([3 ]), self ([4 ]), self ((1 , 2 ))
728
728
729
- def an_element (self ):
729
+ def _an_element_ (self ):
730
730
r"""
731
731
Return an element of the algebra.
732
732
@@ -1253,7 +1253,7 @@ def _richcmp_(self, other, op) -> bool:
1253
1253
raise TypeError ('invalid comparison for multizetas' )
1254
1254
return self .iterated ()._richcmp_ (other .iterated (), op )
1255
1255
1256
- def __hash__ (self ):
1256
+ def __hash__ (self ) -> int :
1257
1257
"""
1258
1258
Return the hash of ``self``.
1259
1259
@@ -1404,7 +1404,7 @@ class Multizetas_iterated(CombinatorialFreeModule):
1404
1404
sage: M((1,0))*M((1,0,0))
1405
1405
6*I(11000) + 3*I(10100) + I(10010)
1406
1406
"""
1407
- def __init__ (self , R ):
1407
+ def __init__ (self , R ) -> None :
1408
1408
"""
1409
1409
TESTS::
1410
1410
@@ -2067,7 +2067,7 @@ class All_iterated(CombinatorialFreeModule):
2067
2067
sage: x.regularise()
2068
2068
-I(10)
2069
2069
"""
2070
- def __init__ (self , R ):
2070
+ def __init__ (self , R ) -> None :
2071
2071
"""
2072
2072
TESTS::
2073
2073
0 commit comments