You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmd2 crashes when from __future__ import annotations is in a cmd2 application and any hook callback methods are registered.
The underlying cause is that cmd2 is using inspect.signature to introspect on type annotations and that method does not have a safe way of doing this prior to Python 3.10 and even then an extra argument to it is required.
The only good option for fixing this that is compatible with Python 3.9 is to using the typing.get_type_hints() function instead.