This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Repository navigation
Fix type annotation on overloads - #146
Merged
Mikhail Arkhipov (MikhailArkhipov) merged 7 commits intoSep 27, 2018
Merged
Mikhail Arkhipov (MikhailArkhipov) merged 7 commits into
Mikhail Arkhipov (MikhailArkhipov) merged 7 commits into
Conversation
| string.Join(",", Parameters.Select(p => "{0}{1}:{2}={3}".FormatInvariant(p.Name, p.IsOptional ? "?" : "", p.Type ?? "", p.DefaultValue ?? ""))), | ||
| string.Join(",", ReturnType.OrderBy(k => k)), | ||
| string.IsNullOrEmpty(Documentation) ? "" : ("'''{0}'''".FormatInvariant(Documentation)) | ||
| var parameters = string.Join(", ", |
Contributor
There was a problem hiding this comment.
Where do we use this ToString implementation? In serialization?
There was a problem hiding this comment.
It actually generates the signature
| ", | ||
| new[] { | ||
| "scale:scale(scalar:float=,vector:list[float]=)->[list,list[float]]" | ||
| "scale:scale(scalar:float, vector:list[float]) -> list[float]" |
Contributor
There was a problem hiding this comment.
So [list,list[float]] is actually merged into list[float]?
There was a problem hiding this comment.
Yes. Tooltips were correct while signatures were really weird
| IBuiltinClassInfo IBuiltinInstanceInfo.ClassInfo => ClassInfo; | ||
| public BuiltinClassInfo ClassInfo => _klass; | ||
|
|
||
| public override string Name => _klass.Name; |
Contributor
There was a problem hiding this comment.
Do we need similar change for InstanceInfo?
There was a problem hiding this comment.
Won't hurt, I'll add them.
| return x.Length >= y.Length ? x : y; | ||
| } | ||
|
|
||
| private IAnalysisSet ChooseBest(IAnalysisSet x, IAnalysisSet y) { |
Contributor
There was a problem hiding this comment.
Dead code?
added 2 commits
September 27, 2018 11:28
Alexander Sher (AlexanderSher)
approved these changes
Sep 27, 2018
Jake Bailey (jakebailey)
pushed a commit
to jakebailey/python-language-server
that referenced
this pull request
Nov 1, 2019
Fix type annotation on overloads
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
a:T, inton a generic ora:list[float, float, float], list[float].[ ]around it if it is a single type.Noneand not[ ]