From 444d4caef5b755bc9295fbe0a765db0b8c186531 Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Sun, 18 Aug 2024 19:03:26 -0400 Subject: [PATCH] cleaner: use `typed: strict` Signed-off-by: Patrick Linnane --- Library/Homebrew/cleaner.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cleaner.rb b/Library/Homebrew/cleaner.rb index d81022029c..5df0e39b15 100644 --- a/Library/Homebrew/cleaner.rb +++ b/Library/Homebrew/cleaner.rb @@ -1,4 +1,4 @@ -# typed: true # rubocop:todo Sorbet/StrictSigil +# typed: strict # frozen_string_literal: true # Cleans a newly installed keg. @@ -113,7 +113,7 @@ class Cleaner # pointless conflicts with other formulae. They are removed by Debian, # Arch & MacPorts amongst other packagers as well. The files are # created as part of installing any Perl module. - PERL_BASENAMES = Set.new(%w[perllocal.pod .packlist]).freeze + PERL_BASENAMES = T.let(Set.new(%w[perllocal.pod .packlist]).freeze, T::Set[String]) # Clean a top-level (`bin`, `sbin`, `lib`) directory, recursively, by fixing file # permissions and removing .la files, unless the files (or parent