fixing log_exception signature

This commit is contained in:
HoneyryderChuck 2020-11-24 16:38:46 +00:00
parent 1e21c33da0
commit cb3e57e10d
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ module HTTPX
end
module Loggable
def log: (?level: Integer, ?color: Symbol) { () -> String } -> void
def log: (?level: Integer?, ?color: Symbol?) { () -> String } -> void
def log_exception: (StandardError, **untyped) -> void
end

View File

@ -59,7 +59,7 @@ module Requests
end
end
def test_plugin_stream_connnectionn_error
def test_plugin_stream_connection_error
session = HTTPX.with_timeout(total_timeout: 1).plugin(:stream)
assert_raises(HTTPX::TimeoutError) do