numpy deprecated type aliases like np.complex in 1.20.0 and removed them entirely in 1.24.0.
Finding examples of this in code with a regular expression:
\b(np|numpy)\.(complex|bool|int|float|object|str|unicode|long)\b
Any reference to np.complex should be replaced simply with complex.
Same for bool, int, float, object, and str. Some have different names:
np.unicode becomes str and np.long becomes int.
More information here: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
This function was deprecated in Python 3.0 and removed in 3.11. The replacement is getfullargspec but it’s not necessarily a straight drop-in – depends on how it is being used.
Calls to inspect.getargspec where only the args part of the return value is used
can be replaced with: (args, *_) = inspect.getfullargspec(...)