Re-posting the resolution in the comments above as a community wiki for better visibility:
The numpy typing module was introduced in numpy 1.20
Make sure that you have the correct numpy
version by running the following at the beginning of your notebook:
%pip install -U numpy