Skip to content

ENH: Extend deprecated decorator

Ugo Nwosu requested to merge ugognw/ase:enhance-deprecated-decorator into master

Checklist

This MR extends the deprecated decorator so that deprecation warnings can be conditionally omitted based on the context of the calling function. One such use-case is when one might want to deprecate calling a function with positional arguments (prior to changing the order of parameters in said function's signature) or warn a user that a particular keyword argument will be removed.

I think these changes will be useful given the number of API changes made since the last release.

Edited by Ugo Nwosu

Merge request reports