Add typing generics#4131
Conversation
b5f116f to
37b3898
Compare
|
Looks good - have you considered directly mimicking the naming/setup of the C++ concepts? Perhaps they could also be put somewhere more general for use across the whole interface. https://github.com/FEniCS/dolfinx/blob/main/cpp/dolfinx/common/types.h#L26 |
1cde704 to
6d5be09
Compare
bcf403b to
f0a843a
Compare
AFAIK the python typing currently does not allow conditional type deductions, so we can not mimic any scalar/real type concepts. |
|
I think you're overcomplicating it a bit. My basic point is to add a |
36886a4 to
5944836
Compare
|
This should be merged when:
|
Extends the approach of #4094 for multi export type wrappers to
VectorMatrixCSRSuperLUDistMatrixSuperLUDistSolverDirichletBCCoordinateElementFiniteElementFormConstantExpressionFunctionFunctionSpaceMeshGeometryCoordinateElementBoundingBoxTreePointOwnershipDataDepends on #4135