pathname: add type to

This commit is contained in:
Daeho Ro 2025-08-03 16:14:42 +09:00
parent 75aee5ec5c
commit af7966cb2a
No known key found for this signature in database

View File

@ -271,7 +271,7 @@ class Pathname
end end
# Writes an exec script in this folder for each target pathname. # Writes an exec script in this folder for each target pathname.
sig { params(targets: T::Array[Pathname]).void } sig { params(targets: T.any(T::Array[T.any(String, Pathname)], String, Pathname)).void }
def write_exec_script(*targets) def write_exec_script(*targets)
targets.flatten! targets.flatten!
if targets.empty? if targets.empty?