lib/parlour/rbs_generator/attribute.rb in parlour-8.1.0 vs lib/parlour/rbs_generator/attribute.rb in parlour-9.0.0

- old
+ new

@@ -27,14 +27,14 @@ def initialize(generator, name, kind, type, &block) @type = type @kind = kind case kind when :accessor, :reader - super(generator, name, [MethodSignature.new([], type)], &block) + super(generator, name, [MethodSignature.new([], type)], &T.cast(block, T.nilable(T.proc.params(x: Method).void))) when :writer super(generator, name, [MethodSignature.new([ Parameter.new(name, type: type) - ], type)], &block) + ], type)], &T.cast(block, T.nilable(T.proc.params(x: Method).void))) else raise 'unknown kind' end end