stdlib/yaml/0/yaml.rbs in rbs-2.8.1 vs stdlib/yaml/0/yaml.rbs in rbs-2.8.2
- old
+ new
@@ -141,10 +141,10 @@
# Loads the document contained in `filename`. Returns the yaml contained in
# `filename` as a Ruby object, or if the file is empty, it returns the specified
# `fallback` return value, which defaults to `false`. See load for options.
#
%a{annotate:rdoc:copy:Psych.load_file}
- def self.load_file: (string, ?fallback: untyped, ?symbolize_names: bool, ?freeze: bool) -> untyped
+ def self.load_file: (string | _ToPath, ?fallback: untyped, ?symbolize_names: bool, ?freeze: bool) -> untyped
# <!--
# rdoc-file=ext/psych/lib/psych.rb
# - safe_load(yaml, permitted_classes: [], permitted_symbols: [], aliases: false, filename: nil, fallback: nil, symbolize_names: false, freeze: false, strict_integer: false)
# -->