@@ -152,7 +152,7 @@ def example(self, choice='highwt', **kwds):
152152
153153 class MorphismMethods :
154154 @cached_method
155- def is_isomorphism (self ):
155+ def is_isomorphism (self ) -> bool :
156156 """
157157 Check if ``self`` is a crystal isomorphism.
158158
@@ -178,7 +178,7 @@ def is_isomorphism(self):
178178
179179 # TODO: This could be moved to sets
180180 @cached_method
181- def is_embedding (self ):
181+ def is_embedding (self ) -> bool :
182182 """
183183 Check if ``self`` is an injective crystal morphism.
184184
@@ -213,7 +213,7 @@ def is_embedding(self):
213213 return True
214214
215215 @cached_method
216- def is_strict (self ):
216+ def is_strict (self ) -> bool :
217217 """
218218 Check if ``self`` is a strict crystal morphism.
219219
@@ -1301,7 +1301,7 @@ def number_of_connected_components(self):
13011301 """
13021302 return len (self .connected_components_generators ())
13031303
1304- def is_connected (self ):
1304+ def is_connected (self ) -> bool :
13051305 """
13061306 Return ``True`` if ``self`` is a connected crystal.
13071307
@@ -1528,7 +1528,7 @@ def s(self, i):
15281528 b = b .e (i )
15291529 return b
15301530
1531- def is_highest_weight (self , index_set = None ):
1531+ def is_highest_weight (self , index_set = None ) -> bool :
15321532 r"""
15331533 Return ``True`` if ``self`` is a highest weight.
15341534
@@ -1550,9 +1550,10 @@ def is_highest_weight(self, index_set=None):
15501550 index_set = self .index_set ()
15511551 return all (self .e (i ) is None for i in index_set )
15521552
1553- def is_lowest_weight (self , index_set = None ):
1553+ def is_lowest_weight (self , index_set = None ) -> bool :
15541554 r"""
15551555 Return ``True`` if ``self`` is a lowest weight.
1556+
15561557 Specifying the option ``index_set`` to be a subset `I` of the
15571558 index set of the underlying crystal, finds all lowest
15581559 weight vectors for arrows in `I`.
0 commit comments