If you want to deprecate it, then just use the warnings module and sympy's deprecation warning. Then make sure if someone uses "method" they get the warning but it automatically get's written to "inv_method". Please check the sphinx documentation to make sure this method keyword isn't there, if it is you need to change that too.