Skip to content

Commit 263ca54

Browse files
committed
utils/github: fix type error for pull_request
1 parent 41198d8 commit 263ca54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Library/Homebrew/utils/github.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ def self.check_for_duplicate_pull_requests(name, tap_remote_repo, file:, quiet:
654654
end
655655
end
656656

657-
sig { params(tap_remote_repo: String, pull_request: String).returns(T::Array[T.untyped]) }
657+
sig { params(tap_remote_repo: String, pull_request: T.any(String, Integer)).returns(T::Array[T.untyped]) }
658658
def self.get_pull_request_changed_files(tap_remote_repo, pull_request)
659659
files = []
660660
API.paginate_rest(url_to("repos", tap_remote_repo, "pulls", pull_request, "files")) do |result|

0 commit comments

Comments
 (0)