Skip to content

Commit 5cabe57

Browse files
authored
Annotation fixes towards a clean Solargraph typecheck of itself (#758)
1 parent c19cbef commit 5cabe57

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/solargraph/pin/signature.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Signature < Base
1212

1313
# @param parameters [Array<Parameter>]
1414
# @param return_type [ComplexType]
15-
# @param block [Signature]
15+
# @param block [Signature, nil]
1616
def initialize parameters, return_type, block = nil
1717
@parameters = parameters
1818
@return_type = return_type

lib/solargraph/source/chain/call.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def super_pins api_map, name_pin
206206

207207
# @param api_map [ApiMap]
208208
# @param name_pin [Pin::Base]
209-
# @return [Array<Pin::Base>]
209+
# @return [::Array<Pin::Base>]
210210
def yield_pins api_map, name_pin
211211
method_pin = api_map.get_method_stack(name_pin.namespace, name_pin.name, scope: name_pin.context.scope).first
212212
return [] if method_pin.nil?

lib/solargraph/yard_map.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def cache
145145
@cache ||= YardMap::Cache.new
146146
end
147147

148-
# @return [Hash{Class => Set<Pin::Base>}]
148+
# @return [Hash{Class<Pin::Base> => Array<Pin::Base>}]
149149
def pin_class_hash
150150
@pin_class_hash ||= pins.to_set.classify(&:class).transform_values(&:to_a)
151151
end

0 commit comments

Comments
 (0)