Mark TopologicalHash # typed: true.

This commit is contained in:
Markus Reiter 2020-11-17 03:33:29 +01:00
parent 66bf1314a1
commit 845887914e

View File

@ -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)