Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stdlib: Make the block arguments of Kernel#proc untyped #2036

Merged
merged 1 commit into from
Oct 4, 2024

Commits on Sep 30, 2024

  1. 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
    tk0miya committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    14e92e1 View commit details
    Browse the repository at this point in the history