pappasam / jedi-language-server

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

simplify type annotation #294

Closed dimbleby closed 10 months ago

dimbleby commented 10 months 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".