Typing tweaks#547
Conversation
|
oh I see, this code is generated. pull request updated accordingly |
|
This makes a lot more sense - thank you!
I think I was trying to express that you could, in theory at least, pass any value to the Do you need this released in a |
|
no need for another release so far as I am concerned, thanks. No objection from me to dropping python 3.9 once it is eol. (Though, unless there is something about supporting 3.9 that is holding you back in some way - and I would accept that a very small reason was a good enough reason! - well I wonder whether sometimes projects are a bit fast to drop support that they didn't actually need to drop. Whatever.) The one thing I would like to see before a non-pre-release release is that dependencies - in particular lsprotocol - should also be at non-pre-release versions. Per #542, I expect that should happen. |
the typing enhancements around
get_capabilityin 2.0.0a4 are I think not quite right. Here is their effect in jedi-language-serverre-exporting
get_capabilityis easy and is the first commit here.However I think that the overloads are also not quite right:
Tis for?Nonemight be returned - which should not be the caseIn the second commit I have updated only the two overloads that are relevant in jedi-language-server, but if you agree that this is the correct direction then hopefully it is clear what the pattern is.