From 23f27e5d0136476754b88ef623a629855a3146f7 Mon Sep 17 00:00:00 2001 From: Ufuk Kayserilioglu Date: Wed, 20 Dec 2023 21:46:35 +0200 Subject: [PATCH] Remove all backcompat patches that we no longer need --- lib/tapioca/sorbet_ext/backcompat_patches.rb | 22 ++------------------ 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/lib/tapioca/sorbet_ext/backcompat_patches.rb b/lib/tapioca/sorbet_ext/backcompat_patches.rb index b79be52fe..97598bed3 100644 --- a/lib/tapioca/sorbet_ext/backcompat_patches.rb +++ b/lib/tapioca/sorbet_ext/backcompat_patches.rb @@ -1,24 +1,6 @@ # typed: true # frozen_string_literal: true -unless defined?(T.anything) - module T - class << self - def anything - T.untyped - end - end - end -end +# This file contains patches to make Tapioca work with older versions of Sorbet. -unless defined?(T::Class) - module T - module Class - class << self - def [](type) - T.untyped - end - end - end - end -end +# NOTE: If there is currently no need for any patches, this file will be empty.