Closed samcunliffe closed 11 months ago
@matt-graham what do you think: straight removal? Or just fix the import to work if not found and deprecate the function?
A bit hacky, but to maintain compatibility with current stable release (v0.6.0) and also current development version we could do something like
try:
# For compatibility with dolfinx@0.6 try initially import old
# DirichletBCMetaClass name
from dolfinx.fem import DirichletBCMetaClass as DirichletBC
except ImportError:
from dolfinx.fem import DirichletBC
and update the type hint accordingly (as it's only used in a type hint I think the slightly misleading aliasing of DirichletBCMetaClass
to DirichletBC
shouldn't matter too much).