You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not an expert in RBS, but it seems we cannot add an overload to an already defined method (or can we?).
Edit: Found it!
As Steep don't have the correct typings, it complains about it. rather loudly. I could write BigDecimal(int) / BigDecimal(2) to silence it, but if there is an alternative, I'm all for it!
I'm doing a PR to add the definitions to the big_decimal.rbs typings.
The text was updated successfully, but these errors were encountered:
I am trying to add typings to a ruby library that has a method like:
The current signature of
Integer#/ is:
def /: (Integer) -> Integer | (Float) -> Float | (Rational) -> Rational | (Complex) -> Complex
However, when using BigDecimal, it should be:
def /: (Integer) -> Integer | (Float) -> Float | (Rational) -> Rational | (Complex) -> Complex | (BigDecimal) -> BigDecimal
I'm not an expert in RBS, but it seems we cannot add an overload to an already defined method (or can we?).Edit: Found it!
As Steep don't have the correct typings, it complains about it. rather loudly. I could writeBigDecimal(int) / BigDecimal(2)
to silence it, but if there is an alternative, I'm all for it!I'm doing a PR to add the definitions to the
big_decimal.rbs
typings.The text was updated successfully, but these errors were encountered: