python 3.11 compatiblity
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sqlalchemy-migrate |
New
|
Undecided
|
Unassigned |
Bug Description
When executing migrate on python 3.11 the following error is produced due to the deprecation of inspect.getargspec
Traceback (most recent call last):
File "/nix/store/
sys.
^^^^^^
File "/nix/store/
f_args, f_varargs, f_kwargs, f_defaults = inspect.
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
the fix is as simple as replacing line 111 of shell.py by:
f_args, f_varargs, f_kwargs, f_defaults, _, _, _ = inspect. getfullargspec( command_ func)