Skip to content

Commit

Permalink
Break long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jun 1, 2024
1 parent 5eb8d68 commit 70614f0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
4 changes: 3 additions & 1 deletion src/sage/groups/abelian_gps/abelian_group_morphism.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@

def is_AbelianGroupMorphism(f):
from sage.misc.superseded import deprecation
deprecation(38103, "The function is_AbelianGroupMorphism is deprecated; use 'isinstance(..., AbelianGroupMorphism)' instead.")
deprecation(38103,

Check warning on line 29 in src/sage/groups/abelian_gps/abelian_group_morphism.py

View check run for this annotation

Codecov / codecov/patch

src/sage/groups/abelian_gps/abelian_group_morphism.py#L28-L29

Added lines #L28 - L29 were not covered by tests
"The function is_AbelianGroupMorphism is deprecated; "
"use 'isinstance(..., AbelianGroupMorphism)' instead.")
return isinstance(f, AbelianGroupMorphism)


Expand Down
7 changes: 5 additions & 2 deletions src/sage/groups/perm_gps/permgroup_morphism.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,13 @@ def is_PermutationGroupMorphism(f) -> bool:
sage: phi = PermutationGroupMorphism_im_gens(G, H, map(H, G.gens()))
sage: is_PermutationGroupMorphism(phi)
doctest:warning...
DeprecationWarning: The function is_PermutationGroupMorphism is deprecated; use 'isinstance(..., PermutationGroupMorphism)' instead.
DeprecationWarning: The function is_PermutationGroupMorphism is deprecated;
use 'isinstance(..., PermutationGroupMorphism)' instead.
See https://github.com/sagemath/sage/issues/38103 for details.
True
"""
from sage.misc.superseded import deprecation
deprecation(38103, "The function is_PermutationGroupMorphism is deprecated; use 'isinstance(..., PermutationGroupMorphism)' instead.")
deprecation(38103,
"The function is_PermutationGroupMorphism is deprecated; "
"use 'isinstance(..., PermutationGroupMorphism)' instead.")
return isinstance(f, PermutationGroupMorphism)
7 changes: 5 additions & 2 deletions src/sage/homology/chain_complex_morphism.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,15 @@ def is_ChainComplexMorphism(x):
To: Chain complex with at most 7 nonzero terms over Integer Ring
sage: is_ChainComplexMorphism(x)
doctest:warning...
DeprecationWarning: The function is_ChainComplexMorphism is deprecated; use 'isinstance(..., ChainComplexMorphism)' instead.
DeprecationWarning: The function is_ChainComplexMorphism is deprecated;
use 'isinstance(..., ChainComplexMorphism)' instead.
See https://github.com/sagemath/sage/issues/38103 for details.
True
"""
from sage.misc.superseded import deprecation
deprecation(38103, "The function is_ChainComplexMorphism is deprecated; use 'isinstance(..., ChainComplexMorphism)' instead.")
deprecation(38103,
"The function is_ChainComplexMorphism is deprecated; "
"use 'isinstance(..., ChainComplexMorphism)' instead.")
return isinstance(x, ChainComplexMorphism)


Expand Down
7 changes: 5 additions & 2 deletions src/sage/topology/simplicial_complex_morphism.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,16 @@ def is_SimplicialComplexMorphism(x):
sage: x = H(f)
sage: is_SimplicialComplexMorphism(x)
doctest:warning...
DeprecationWarning: The function is_SimplicialComplexMorphism is deprecated; use 'isinstance(..., SimplicialComplexMorphism)' instead.
DeprecationWarning: The function is_SimplicialComplexMorphism is deprecated;
use 'isinstance(..., SimplicialComplexMorphism)' instead.
See https://github.com/sagemath/sage/issues/38103 for details.
True
"""
from sage.misc.superseded import deprecation
deprecation(38103, "The function is_SimplicialComplexMorphism is deprecated; use 'isinstance(..., SimplicialComplexMorphism)' instead.")
deprecation(38103,
"The function is_SimplicialComplexMorphism is deprecated; "
"use 'isinstance(..., SimplicialComplexMorphism)' instead.")
return isinstance(x, SimplicialComplexMorphism)


Expand Down

0 comments on commit 70614f0

Please sign in to comment.