pappasam / jedi-language-server

A Python language server exclusively for Jedi. If Jedi supports it well, this language server should too.
MIT License
626 stars 45 forks source link

simplify type annotation #294

Closed dimbleby closed 1 year ago

dimbleby commented 1 year ago

Absent any isinstance() checks, the only properties that you can rely on regarding Union[Signature, BaseSignature] are ones that the two types have in common.

But since Signature is derived from BaseSignature: "Union[Signature, BaseSignature]" is just a complicated way to write "BaseSignature".