Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stdlib: Make the block arguments of Kernel#proc untyped
This changes the block argument of `Kernel#proc` to UntypedFunction. Then the arguments of the block become untyped instead of nil. It allows users to override the type via comment annotation. For example: ``` proc do |a, b, c| # @type var a: String # @type var b: Integer # @type var c: Symbol end ``` I found this problem on the Steep repo. https://github.com/soutaro/steep/blob/v1.8.0/lib/steep.rb#L169-L176
- Loading branch information