Skip to content

Commit

Permalink
updates bundled RBI to match new featureset (#70)
Browse files Browse the repository at this point in the history
Realised that we never updated the bundled RBI with the new option passed to `.from`. This PR fixes that!

See also: sorbet/sorbet-typed#396
  • Loading branch information
mattxwang authored Aug 11, 2022
1 parent beefa45 commit afa640a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bundled_rbi/sorbet-coerce.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ module TypeCoerce

Elem = type_member

sig { params(args: T.untyped, raise_coercion_error: T.nilable(T::Boolean)).returns(Elem) }
def from(args, raise_coercion_error: nil); end
sig { params(args: T.untyped, raise_coercion_error: T.nilable(T::Boolean), coerce_empty_to_nil: T::Boolean).returns(Elem) }
def from(args, raise_coercion_error: nil, coerce_empty_to_nil: false); end

class CoercionError < SafeType::CoercionError; end
class ShapeError < SafeType::CoercionError; end
Expand Down

0 comments on commit afa640a

Please sign in to comment.