Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placate ruff about None in type annotations #441

Merged
merged 1 commit into from
Nov 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading