Update xferfcn.py - numpy deprecations. by dapperfu · Pull Request #539 · python-control/python-control
DeprecationWarning:
np.intis a deprecated alias for the builtinint. To silence this warning, useintby itself. Doing this will not modify any behavior and is safe. When replacingnp.int, you may wish to use e.g.np.int64ornp.int32to specify the precision. If you wish to review your current use, check the release note link for additional information.
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Changed the logic to check for an instance of both 32 & 64-bit ints.
The np.int is covered by the builtin int:
>>> isinstance(np.int(1), (int, np.int32, np.int64))
True
>>> isinstance(int(1), (int, np.int32, np.int64))
True