Skip to content

Commit

Permalink
Placate ruff about None in type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Nov 17, 2024
1 parent 0b186e7 commit f7f54c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meshmode/mesh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ class Mesh:
# TODO: Once the @property(nodal_adjacency) is past its deprecation period
# and removed, these can deprecated in favor of non-underscored variants.

_nodal_adjacency: None | Literal[False] | NodalAdjacency
_nodal_adjacency: Literal[False] | NodalAdjacency | None
"""A description of the nodal adjacency of the mesh. This can be *False* if
no adjacency is known or should be computed, *None* to compute the adjacency
on demand or a given :class:`NodalAdjacency` instance.
Expand All @@ -1152,7 +1152,7 @@ class Mesh:
"""

_facial_adjacency_groups: \
None | Literal[False] | tuple[tuple[FacialAdjacencyGroup, ...], ...]
Literal[False] | tuple[tuple[FacialAdjacencyGroup, ...], ...] | None
"""A description of the facial adjacency of the mesh. This can be *False* if
no adjacency is known or should be computed, *None* to compute the adjacency
on demand or a list of :class:`FacialAdjacencyGroup` instances.
Expand Down

0 comments on commit f7f54c6

Please sign in to comment.