Skip to content

Commit

Permalink
Add type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
a-alveyblanc committed Nov 14, 2023
1 parent debd306 commit 1bb7bd3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions meshmode/discretization/poly_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from warnings import warn

import numpy as np
from numpy.typing import ArrayLike
from pytools import memoize_method, memoize_on_first_arg
from meshmode.mesh import (
MeshElementGroup as _MeshElementGroup,
Expand All @@ -41,6 +42,7 @@
InterpolatoryElementGroupBase)

import modepy as mp
from modepy import Basis

__doc__ = """
Group types
Expand Down Expand Up @@ -518,8 +520,9 @@ def from_mesh_interp_matrix(self):

class TensorProductElementGroupBase(PolynomialElementGroupBase,
HypercubeElementGroupBase):
def __init__(self, mesh_el_group, order, index=None, *, basis,
unit_nodes):
def __init__(self, mesh_el_group: _MeshTensorProductElementGroup,
order: int, index=None, *, basis: Basis,
unit_nodes: ArrayLike):
"""
:arg basis: a :class:`modepy.TensorProductBasis`.
:arg unit_nodes: unit nodes for the tensor product, obtained by
Expand Down

0 comments on commit 1bb7bd3

Please sign in to comment.