From 40f769066b29197d165b1391abb20059ef3eca48 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Tue, 15 Mar 2022 15:57:39 -0500 Subject: [PATCH] Add BounaryTag type alias, annotate Mesh.groups --- meshmode/mesh/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meshmode/mesh/__init__.py b/meshmode/mesh/__init__.py index 824f77493..62b48c22f 100644 --- a/meshmode/mesh/__init__.py +++ b/meshmode/mesh/__init__.py @@ -22,7 +22,7 @@ from abc import ABC, abstractmethod from dataclasses import dataclass, replace, field -from typing import Any, ClassVar, Hashable, Optional, Tuple, Type +from typing import Any, ClassVar, Hashable, Optional, Tuple, Type, Sequence import numpy as np import numpy.linalg as la @@ -66,6 +66,9 @@ # {{{ element tags +BoundaryTag = Hashable + + class BTAG_NONE: # noqa: N801 """A boundary tag representing an empty boundary or volume.""" @@ -906,6 +909,8 @@ class Mesh(Record): .. automethod:: __ne__ """ + groups: Sequence[MeshElementGroup] + face_id_dtype = np.int8 def __init__(self, vertices, groups, *, skip_tests=False,