报告推断类型与方法的预期返回类型不匹配的方法和块的返回值。 预期的返回类型取自其中任意一种:
RBS 类型签名
Sorbet 类型签名
YARD
@return
标记
示例:
# @return [Integer] def method 1.0 end