Skip to content

Commit

Permalink
return type annotation -> type assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
benlorenz committed Feb 13, 2024
1 parent c15b65f commit c9e4fc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Combinatorics/SimplicialComplexes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ julia> is_sphere(K)
false
```
"""
is_sphere(K::SimplicialComplex)::Union{Bool,Nothing} = pm_object(K).SPHERE
is_sphere(K::SimplicialComplex) = pm_object(K).SPHERE::Union{Bool,Nothing}

"""
is_ball(K::SimplicialComplex)
Expand All @@ -439,7 +439,7 @@ julia> is_ball(K)
true
```
"""
is_ball(K::SimplicialComplex)::Union{Bool,Nothing} = pm_object(K).BALL
is_ball(K::SimplicialComplex) = pm_object(K).BALL::Union{Bool,Nothing}

"""
is_manifold(K::SimplicialComplex)
Expand All @@ -462,7 +462,7 @@ julia> is_manifold(simplicial_complex([[1,2],[2,3],[2,4]]))
false
```
"""
is_manifold(K::SimplicialComplex)::Union{Bool,Nothing} = pm_object(K).MANIFOLD
is_manifold(K::SimplicialComplex) = pm_object(K).MANIFOLD::Union{Bool,Nothing}

################################################################################
### Surface examples
Expand Down

0 comments on commit c9e4fc4

Please sign in to comment.