Skip to content

Hash type definition changes method signature? #7

@mperham

Description

@mperham

I'm experimenting with LowType.

I have this:

require "low_type"

[...]

class Something
  include LowType
  def initialize(hash)

Do I need to include that Module everywhere or just require it once? I adjusted the signature like so:

   def initialize(hash: Hash[String => String])

And now I see this when I run tests:

ArgumentError: wrong number of arguments (given 1, expected 0)
    lib/sidekiq/api.rb:1075:in 'initialize'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions