formula: fix inreplace typechecking error
Fixes
TypeError: Parameter 'before': Expected type T.nilable(T.any(Regexp, String)), got type Pathname with value #<Pathname:/opt/homebrew/Cellar/php/8.2.8/lib/php>
Caller: /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/php.rb:207
Definition: /opt/homebrew/Library/Homebrew/formula.rb:2483
https://github.com/Homebrew/homebrew-core/actions/runs/5635089949/job/15265751616?pr=137335#step:3:1732
This commit is contained in:
parent
b5d13ce68d
commit
a1bf42cc89
@ -2475,7 +2475,7 @@ class Formula
|
|||||||
sig {
|
sig {
|
||||||
params(
|
params(
|
||||||
paths: T.any(T::Array[T.untyped], String, Pathname),
|
paths: T.any(T::Array[T.untyped], String, Pathname),
|
||||||
before: T.nilable(T.any(Regexp, String)),
|
before: T.nilable(T.any(Pathname, Regexp, String)),
|
||||||
after: T.nilable(T.any(Pathname, String, Symbol)),
|
after: T.nilable(T.any(Pathname, String, Symbol)),
|
||||||
audit_result: T::Boolean,
|
audit_result: T::Boolean,
|
||||||
).void
|
).void
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user