From bbf5825d5455640e54f077fbef604e2dc2b80206 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Sun, 17 Mar 2024 20:28:54 +0000 Subject: [PATCH] Appease RuboCop --- Library/Homebrew/sorbet/tapioca/compilers/tty.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/sorbet/tapioca/compilers/tty.rb b/Library/Homebrew/sorbet/tapioca/compilers/tty.rb index 7ad90277d0..04aaa15b33 100644 --- a/Library/Homebrew/sorbet/tapioca/compilers/tty.rb +++ b/Library/Homebrew/sorbet/tapioca/compilers/tty.rb @@ -7,11 +7,16 @@ require_relative "../../../utils/tty" module Tapioca module Compilers class Tty < Tapioca::Dsl::Compiler + # FIXME: Enable cop again when https://github.com/sorbet/sorbet/issues/3532 is fixed. + # rubocop:disable Style/MutableConstant + # This should be a module whose singleton class contains RuboCop::AST::NodePattern::Macros, + # but I don't know how to express that in Sorbet. ConstantType = type_member { { fixed: Module } } + # rubocop:enable Style/MutableConstant sig { override.returns(T::Enumerable[Module]) } def self.gather_constants - [::Tty] + [::Tty] end sig { override.void }