@@ -115,9 +115,9 @@ def an_element(self):
115115 sage: x.parent()
116116 Integer Ring
117117 """
118- return self (47 ) # if speed is needed, call: self.element_class(47)
118+ return self (47 ) # if speed is needed, call: self.element_class(47)
119119
120- def __contains__ (self , p ):
120+ def __contains__ (self , p ) -> bool :
121121 """
122122 TESTS::
123123
@@ -393,7 +393,7 @@ def __init__(self):
393393 super ().__init__ ()
394394 self ._populate_coercion_lists_ (embedding = IntegerRing ())
395395
396- def __contains__ (self , p ):
396+ def __contains__ (self , p ) -> bool :
397397 """
398398 TESTS::
399399
@@ -502,7 +502,7 @@ def __init__(self):
502502 self .mor = Hom (self , IntegerRing ())(lambda z : z .value )
503503 self ._populate_coercion_lists_ (embedding = self .mor )
504504
505- def _repr_ (self ):
505+ def _repr_ (self ) -> str :
506506 """
507507 TESTS::
508508
@@ -511,7 +511,7 @@ def _repr_(self):
511511 """
512512 return "Set of prime numbers (wrapper implementation)"
513513
514- def __contains__ (self , p ):
514+ def __contains__ (self , p ) -> bool :
515515 """
516516 TESTS::
517517
@@ -665,7 +665,7 @@ def __init__(self):
665665 """
666666 Parent .__init__ (self , facade = IntegerRing (), category = Sets ())
667667
668- def _repr_ (self ):
668+ def _repr_ (self ) -> str :
669669 """
670670 TESTS::
671671
@@ -674,7 +674,7 @@ def _repr_(self):
674674 """
675675 return "Set of prime numbers (facade implementation)"
676676
677- def __contains__ (self , p ):
677+ def __contains__ (self , p ) -> bool :
678678 """
679679 TESTS::
680680
0 commit comments