Inspectopedia
 
2024.3

Mismatched argument type

Warning
New
Last modified: 03 December 2024

Reports method and yield calls with arguments whose inferred types don't match the parameter's expected type. The expected parameter type is taken from either of:

  • The RBS type signature

  • The Sorbet type signature

  • The YARD @param tag

Example: