Skip to content

Commit 40f7690

Browse files
committed
Add BounaryTag type alias, annotate Mesh.groups
1 parent 65565cc commit 40f7690

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

meshmode/mesh/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
from abc import ABC, abstractmethod
2424
from dataclasses import dataclass, replace, field
25-
from typing import Any, ClassVar, Hashable, Optional, Tuple, Type
25+
from typing import Any, ClassVar, Hashable, Optional, Tuple, Type, Sequence
2626

2727
import numpy as np
2828
import numpy.linalg as la
@@ -66,6 +66,9 @@
6666

6767
# {{{ element tags
6868

69+
BoundaryTag = Hashable
70+
71+
6972
class BTAG_NONE: # noqa: N801
7073
"""A boundary tag representing an empty boundary or volume."""
7174

@@ -906,6 +909,8 @@ class Mesh(Record):
906909
.. automethod:: __ne__
907910
"""
908911

912+
groups: Sequence[MeshElementGroup]
913+
909914
face_id_dtype = np.int8
910915

911916
def __init__(self, vertices, groups, *, skip_tests=False,

0 commit comments

Comments
 (0)