Mark TopologicalHash # typed: true.
This commit is contained in:
parent
66bf1314a1
commit
845887914e
@ -1,4 +1,4 @@
|
||||
# typed: false
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "tsort"
|
||||
@ -8,7 +8,11 @@ module Cask
|
||||
class TopologicalHash < Hash
|
||||
include TSort
|
||||
|
||||
alias tsort_each_node each_key
|
||||
private
|
||||
|
||||
def tsort_each_node(&block)
|
||||
each_key(&block)
|
||||
end
|
||||
|
||||
def tsort_each_child(node, &block)
|
||||
fetch(node).each(&block)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user