sig/resolver/native.rbs in httpx-0.16.1 vs sig/resolver/native.rbs in httpx-0.17.0

- old
+ new

@@ -3,10 +3,12 @@ class Native extend Forwardable include ResolverMixin include _ToIO + type state = :idle | :open | :closed + DEFAULTS: Hash[Symbol, untyped] DNS_PORT: Integer @options: Options @ns_index: Integer @@ -17,11 +19,11 @@ @_record_types: Hash[String, Hash["A" | "AAAA", dns_resource]] @connections: Array[Connection] @queries: Hash[String, Connection] @read_buffer: String @write_buffer: Buffer - @state: :idle | :open | :closed + @state: state def closed?: () -> bool def empty?: () -> bool @@ -54,10 +56,10 @@ def resolve: (?Connection connection, ?String hostname) -> void def build_socket: () -> void - def transition: (Symbol nextstate) -> void + def transition: (state nextstate) -> void def handle_error: (NativeResolveError | StandardError) -> void end end end \ No newline at end of file