Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Fix pyflakes issue
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorkarn committed Sep 13, 2022
1 parent fd97067 commit 8873753
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sage/combinat/diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
# ****************************************************************************

from sage.categories.sets_cat import Sets
from sage.sets.non_negative_integers import NonNegativeIntegers as NN
from sage.combinat.partition import Partition
from sage.combinat.skew_partition import SkewPartition
from sage.combinat.permutation import Permutations
Expand Down Expand Up @@ -335,6 +334,8 @@ def check(self):
...
ValueError: Diagrams must be indexed by non-negative integers
"""
from sage.sets.non_negative_integers import NonNegativeIntegers
NN = NonNegativeIntegers()
if not all(all(list(i in NN for i in c)) for c in self._cells):
raise ValueError("Diagrams must be indexed by non-negative integers")

Expand Down Expand Up @@ -1027,7 +1028,7 @@ def from_partition(self, mu):
Combinatorial northwest diagrams
This will print in English notation even if the notation is set to
French for the partition.
French for the partition::
sage: Partitions.options.convention="french"
sage: mu.pp()
Expand Down

0 comments on commit 8873753

Please sign in to comment.