Module dolfinx.fem has no attribute TensorFunctionSpace

I’m getting this attribute error
module ‘dolfinx.fem’ has no attribute ‘TensorFunctionSpace’
I installed dolfinx using conda as recommend:
conda create -n fenicsx-env
conda activate fenicsx-env
conda install -c conda-forge fenics-dolfinx mpich pyvista

fenicsx-env) bash-3.2$ python
Python 3.12.1 | packaged by conda-forge | (main, Dec 23 2023, 08:05:03) [Clang 16.0.6 ] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.

from dolfinx.fem import TensorFunctionSpace
Traceback (most recent call last):
File “”, line 1, in
ImportError: cannot import name ‘TensorFunctionSpace’ from ‘dolfinx.fem’ (/Users/sobh/miniconda3/envs/fenicsx-env/lib/python3.12/site-packages/dolfinx/fem/init.py). Did you mean: ‘VectorFunctionSpace’?
verson:


fenics-dolfinx 0.7.2 py312hae130cc_103 conda-forge
fenics-libdolfinx 0.7.2 h9158aaa_103 conda-forge

dolfinx.fem.TensorFunctionSpace was removed in Add shape argument to `FunctionSpace` for creating blocked scalar element spaces by garth-wells · Pull Request #2766 · FEniCS/dolfinx · GitHub. Go to Add shape argument to `FunctionSpace` for creating blocked scalar element spaces by garth-wells · Pull Request #2766 · FEniCS/dolfinx · GitHub and search for the word TensorFunctionSpace to see how to replace it.

Thanks for the quick reply Francesco.