From 3a28e5f1dc5caf00f87f9c81b58c040b9cecae6c Mon Sep 17 00:00:00 2001 From: ksss Date: Wed, 6 May 2026 18:51:24 +0900 Subject: [PATCH] Use top-level `path` in fileutils.rbs to suppress deprecation warning `FileUtils::path` is deprecated in favor of the top-level `path` type. Replace internal references so `steep check --validate=library` no longer emits RBS::DeprecatedTypeName warnings. Co-Authored-By: Claude Opus 4.7 (1M context) --- stdlib/fileutils/0/fileutils.rbs | 42 ++++++++++++++++---------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/stdlib/fileutils/0/fileutils.rbs b/stdlib/fileutils/0/fileutils.rbs index 8a2e80c57..1f7717d85 100644 --- a/stdlib/fileutils/0/fileutils.rbs +++ b/stdlib/fileutils/0/fileutils.rbs @@ -189,7 +189,7 @@ module FileUtils %a{deprecated: Use top-level `path` instead} type path = ::path - type pathlist = path | Array[path] + type pathlist = ::path | Array[::path] # # Like FileUtils.ln_s, but create links relative to `dest`. # - def self?.ln_sr: (pathlist src, path dest, ?target_directory: boolish, ?noop: boolish, ?verbose: boolish) -> void + def self?.ln_sr: (pathlist src, ::path dest, ?target_directory: boolish, ?noop: boolish, ?verbose: boolish) -> void #