
Jan. 2, 2023
9:51 a.m.
Thanks for writing this proposal. This fills an important gap. I like the simplicity of your proposed approach. Adding additional complexity to support deprecation of global variables and type aliases would be a mistake, IMO. You mentioned protocol implementations. I think the same applies to classes that implement an ABC. It looks like the most popular third-party library for deprecation is https://pypi.org/project/Deprecated/. It's downloaded almost 6M times each week. It might be worth considering adopting its interface. It provides separate named parameters for "reason" and "version". -- Eric Traut Contributor to Pyright & Pylance Microsoft