Skip to content

Commit 299ab19

Browse files
authored
Merge pull request #22004 from Homebrew/qlplugin-type-fix
cask/artifact/qlplugin: fix type override
2 parents aad0a5c + 5f964f2 commit 299ab19

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

Library/Homebrew/cask/artifact/qlplugin.rb

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,33 @@ def self.english_name
1919
force: T::Boolean,
2020
verbose: T::Boolean,
2121
predecessor: T.nilable(Cask),
22+
successor: T.nilable(Cask),
2223
reinstall: T::Boolean,
2324
command: T.class_of(SystemCommand),
2425
options: T.anything,
2526
).void
2627
}
2728
def install_phase(adopt: false, auto_updates: false, force: false, verbose: false, predecessor: nil,
28-
reinstall: false, command: SystemCommand, **options)
29+
successor: nil, reinstall: false, command: SystemCommand, **options)
2930
super
3031
reload_quicklook(command:)
3132
end
3233

3334
sig {
3435
override.params(
35-
skip: T::Boolean,
36-
force: T::Boolean,
37-
adopt: T::Boolean,
38-
command: T.class_of(SystemCommand),
39-
options: T.anything,
36+
skip: T::Boolean,
37+
force: T::Boolean,
38+
adopt: T::Boolean,
39+
verbose: T::Boolean,
40+
successor: T.nilable(Cask),
41+
upgrade: T::Boolean,
42+
reinstall: T::Boolean,
43+
command: T.class_of(SystemCommand),
44+
options: T.anything,
4045
).void
4146
}
42-
def uninstall_phase(skip: false, force: false, adopt: false, command: SystemCommand, **options)
47+
def uninstall_phase(skip: false, force: false, adopt: false, verbose: false, successor: nil, upgrade: false,
48+
reinstall: false, command: SystemCommand, **options)
4349
super
4450
reload_quicklook(command:)
4551
end

0 commit comments

Comments
 (0)