lib/tapioca/runtime/reflection.rb in tapioca-0.16.0 vs lib/tapioca/runtime/reflection.rb in tapioca-0.16.1

- old
+ new

@@ -128,11 +128,16 @@ "::#{name}" end end sig { params(method: T.any(UnboundMethod, Method)).returns(T.untyped) } - def signature_of(method) + def signature_of!(method) T::Utils.signature_for_method(method) + end + + sig { params(method: T.any(UnboundMethod, Method)).returns(T.untyped) } + def signature_of(method) + signature_of!(method) rescue LoadError, StandardError nil end sig { params(type: T::Types::Base).returns(String) }