
May 20, 2022
8:38 p.m.
I think this is a useful construct, and I like the proposal. TypeScript has an `overload` keyword for this purpose (see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-3.ht...). A decorator is a natural way to add this functionality in Python. I agree that this should be opt-in at the method level and should not be pushed as a core expectation for all well-annotated code. -- Eric Traut Contributor to Pyright & Pylance Microsoft