Hi all,
a (hopefully) very brief question: How would you type a deprecated
API, in particular a kwarg that is in the process of renaming. [1]
In such cases NumPy currently makes the stubs "live in the future":
They indicate that the old name is not a valid argument. [2]
Now there is a request that the stubs should accept both until the
deprecation is finalized. Is that the "obviously" preferred option or
is it reasonable to ask users to just use `# type: ignore `?
I am more than happy if the answer is just a shrug ;).
Cheers,
Sebastian
[1] I found some discussions about supporting a Deprecated type-hint,
but not on a clear preference here.
[2] This may partially come from the fact that we have API that should
never be used and I think some of that is intentionally not typed.