sig/resolver/resolver_mixin.rbs in httpx-0.15.4 vs sig/resolver/resolver_mixin.rbs in httpx-0.16.0

- old
+ new

@@ -2,10 +2,12 @@ module Resolver module ResolverMixin include Callbacks include Loggable + CHECK_IF_IP: Proc + def uncache: (Connection) -> void private def emit_addresses: (Connection, Array[ipaddr]) -> void @@ -14,14 +16,11 @@ def ip_resolve: (String hostname) -> Array[ipaddr]? def system_resolve: (String hostname) -> Array[ipaddr]? - def emit_resolve_error: (Connection, String hostname, StandardError) -> void - | (Connection, String hostname) -> void - | (Connection) -> void + def emit_resolve_error: (Connection, ?String hostname, ?StandardError) -> void - def resolve_error: (String hostname, StandardError?) -> void - | (String hostname) -> void + def resolve_error: (String hostname, ?StandardError?) -> void end end end