Skip to content

Commit

Permalink
fixing pycodestyle E713: test for membership should be 'not in'
Browse files Browse the repository at this point in the history
  • Loading branch information
seblabbe committed Oct 8, 2024
1 parent 78e4186 commit 975f73d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/sage/categories/crystals.py
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ def tikz(self, **kwds):
sage: _ = t.pdf(view=False) # long time (1s), optional - latex dot2tex graphviz
"""
from sage.misc.latex_standalone import TikzPicture
if not 'standalone_config' in kwds:
if 'standalone_config' not in kwds:
kwds['standalone_config'] = ["border=1pt"]
return TikzPicture(self._latex_(), **kwds)

Expand Down
2 changes: 1 addition & 1 deletion src/sage/combinat/crystals/generalized_young_walls.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ def tikz(self, latex_large=False, **kwds):
"""
from sage.misc.latex_standalone import TikzPicture
if not 'standalone_config' in kwds:
if 'standalone_config' not in kwds:
kwds['standalone_config'] = ["border=1pt"]
if latex_large:
s = self.latex_large()
Expand Down
2 changes: 1 addition & 1 deletion src/sage/combinat/crystals/mv_polytopes.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def tikz(self, **kwds):
"""
from sage.misc.latex_standalone import TikzPicture
if not 'standalone_config' in kwds:
if 'standalone_config' not in kwds:
kwds['standalone_config'] = ["border=1pt"]
return TikzPicture(self._latex_(), **kwds)

Expand Down
2 changes: 1 addition & 1 deletion src/sage/combinat/crystals/spins.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ cdef class Spin(Element):
"""
from sage.misc.latex_standalone import Standalone
if not 'standalone_config' in kwds:
if 'standalone_config' not in kwds:
kwds['standalone_config'] = ["border=1pt"]
return Standalone(self._latex_(), **kwds)

Expand Down
2 changes: 1 addition & 1 deletion src/sage/combinat/crystals/tensor_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ def latex_standalone(self, **kwds):
"""
from sage.misc.latex_standalone import Standalone
if not 'standalone_config' in kwds:
if 'standalone_config' not in kwds:
kwds['standalone_config'] = ["border=1pt"]
return Standalone(self._latex_(), **kwds)

Expand Down
8 changes: 4 additions & 4 deletions src/sage/combinat/crystals/tensor_product_element.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ cdef class TensorProductOfCrystalsElement(ImmutableListWithParent):
"""
from sage.misc.latex_standalone import Standalone
if not 'standalone_config' in kwds:
if 'standalone_config' not in kwds:
kwds['standalone_config'] = ["border=1pt"]
return Standalone(self._latex_(), **kwds)

Expand Down Expand Up @@ -925,7 +925,7 @@ cdef class CrystalOfTableauxElement(TensorProductOfRegularCrystalsElement):
"""
from sage.misc.latex_standalone import Standalone
if not 'standalone_config' in kwds:
if 'standalone_config' not in kwds:
kwds['standalone_config'] = ["border=1pt"]
return Standalone(self._latex_(), **kwds)

Expand Down Expand Up @@ -1426,7 +1426,7 @@ cdef class CrystalOfBKKTableauxElement(TensorProductOfSuperCrystalsElement):
"""
from sage.misc.latex_standalone import Standalone
if not 'standalone_config' in kwds:
if 'standalone_config' not in kwds:
kwds['standalone_config'] = ["border=1pt"]
return Standalone(self._latex_(), **kwds)

Expand Down Expand Up @@ -1785,7 +1785,7 @@ cdef class InfinityQueerCrystalOfTableauxElement(TensorProductOfQueerSuperCrysta
"""
from sage.misc.latex_standalone import Standalone
if not 'standalone_config' in kwds:
if 'standalone_config' not in kwds:
kwds['standalone_config'] = ["border=1pt"]
return Standalone(self._latex_(), **kwds)

Expand Down

0 comments on commit 975f73d

Please sign in to comment.