Files
Martin Vogel accfcf6fa7 fix(lsp): an overload decorator imported under another name
`from typing import overload as ovl` followed by `@ovl` was not recognised as @overload (the decorator's last dotted name is matched against `overload`), so the implementation's return annotation still gave the call its type: `make().replace(cls=AliasText).css()` drew Alias.css where python3 runs AliasText.css. A plain decorator name now also counts when the module's imports bind it to typing's or typing_extensions' overload (the module's namespace facts, `from ... import overload as X`); `@typing.overload`, `@tp.overload` and `@overload` match as before. A method of the same class under an ordinary decorator keeps its identity.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-11-18 19:09:52 +01:00
..