@@ -152,7 +152,7 @@ def example(self, choice='highwt', **kwds):
152
152
153
153
class MorphismMethods :
154
154
@cached_method
155
- def is_isomorphism (self ):
155
+ def is_isomorphism (self ) -> bool :
156
156
"""
157
157
Check if ``self`` is a crystal isomorphism.
158
158
@@ -178,7 +178,7 @@ def is_isomorphism(self):
178
178
179
179
# TODO: This could be moved to sets
180
180
@cached_method
181
- def is_embedding (self ):
181
+ def is_embedding (self ) -> bool :
182
182
"""
183
183
Check if ``self`` is an injective crystal morphism.
184
184
@@ -213,7 +213,7 @@ def is_embedding(self):
213
213
return True
214
214
215
215
@cached_method
216
- def is_strict (self ):
216
+ def is_strict (self ) -> bool :
217
217
"""
218
218
Check if ``self`` is a strict crystal morphism.
219
219
@@ -1301,7 +1301,7 @@ def number_of_connected_components(self):
1301
1301
"""
1302
1302
return len (self .connected_components_generators ())
1303
1303
1304
- def is_connected (self ):
1304
+ def is_connected (self ) -> bool :
1305
1305
"""
1306
1306
Return ``True`` if ``self`` is a connected crystal.
1307
1307
@@ -1528,7 +1528,7 @@ def s(self, i):
1528
1528
b = b .e (i )
1529
1529
return b
1530
1530
1531
- def is_highest_weight (self , index_set = None ):
1531
+ def is_highest_weight (self , index_set = None ) -> bool :
1532
1532
r"""
1533
1533
Return ``True`` if ``self`` is a highest weight.
1534
1534
@@ -1550,9 +1550,10 @@ def is_highest_weight(self, index_set=None):
1550
1550
index_set = self .index_set ()
1551
1551
return all (self .e (i ) is None for i in index_set )
1552
1552
1553
- def is_lowest_weight (self , index_set = None ):
1553
+ def is_lowest_weight (self , index_set = None ) -> bool :
1554
1554
r"""
1555
1555
Return ``True`` if ``self`` is a lowest weight.
1556
+
1556
1557
Specifying the option ``index_set`` to be a subset `I` of the
1557
1558
index set of the underlying crystal, finds all lowest
1558
1559
weight vectors for arrows in `I`.
0 commit comments