lib/tapioca/dsl/compiler.rb in tapioca-0.10.1 vs lib/tapioca/dsl/compiler.rb in tapioca-0.10.2

- old
+ new

@@ -35,11 +35,11 @@ sig { returns(T::Set[Module]) } def processable_constants @processable_constants ||= T.let( T::Set[Module].new(gather_constants).compare_by_identity, - T.nilable(T::Set[Module]) + T.nilable(T::Set[Module]), ) end private @@ -82,11 +82,11 @@ # Get the types of each parameter from a method signature sig do params( method_def: T.any(Method, UnboundMethod), - signature: T.untyped # as `T::Private::Methods::Signature` is private + signature: T.untyped, # as `T::Private::Methods::Signature` is private ).returns(T::Array[String]) end def parameters_types_from_signature(method_def, signature) params = T.let([], T::Array[String]) @@ -113,10 +113,10 @@ def create_method_from_def(scope, method_def, class_method: false) scope.create_method( method_def.name.to_s, parameters: compile_method_parameters_to_rbi(method_def), return_type: compile_method_return_type_to_rbi(method_def), - class_method: class_method + class_method: class_method, ) end sig { params(method_def: T.any(Method, UnboundMethod)).returns(T::Array[RBI::TypedParam]) } def compile_method_parameters_to_rbi(method_def)