We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0ef506 commit 7127131Copy full SHA for 7127131
test/testlib.py
@@ -217,6 +217,15 @@ class Velocity2D:
217
__array_ufunc__: ClassVar[None] = None
218
219
220
+# https://github.com/inducer/arraycontext/pull/333
221
+# (i.e. test that we consider inherited annotations)
222
+@with_container_arithmetic(bcasts_across_obj_array=True, rel_comparison=True)
223
+@dataclass_array_container
224
+@dataclass(frozen=True)
225
+class Velocity3D(Velocity2D):
226
+ w: ArrayOrContainer
227
+
228
229
@with_array_context.register(Velocity2D)
230
# https://github.com/python/mypy/issues/13040
231
def _with_actx_velocity_2d(ary, actx): # type: ignore[misc]
0 commit comments