From a30cd15a73cf9835be2b3aaeb5e1cfa4f8b6dd07 Mon Sep 17 00:00:00 2001 From: Daiki Mizukami Date: Thu, 13 Jun 2024 06:56:18 +0900 Subject: [PATCH] extend/os/mac/utils/copy: `typed: strict` --- Library/Homebrew/extend/os/mac/utils/copy.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/extend/os/mac/utils/copy.rb b/Library/Homebrew/extend/os/mac/utils/copy.rb index 40e8ad4fc5..f262524c8a 100644 --- a/Library/Homebrew/extend/os/mac/utils/copy.rb +++ b/Library/Homebrew/extend/os/mac/utils/copy.rb @@ -1,4 +1,4 @@ -# typed: true +# typed: strict # frozen_string_literal: true module Utils @@ -8,7 +8,7 @@ module Utils private # Use the lightweight `clonefile(2)` syscall if applicable. - SONOMA_FLAGS = ["-c"].freeze + SONOMA_FLAGS = T.let(["-c"].freeze, T::Array[String]) sig { returns(T.nilable(T::Array[String])) } def extra_flags