small sig fixes

This commit is contained in:
HoneyryderChuck 2021-07-13 20:04:38 +01:00
parent e9e3063dcc
commit fbe8a16b1c
2 changed files with 2 additions and 7 deletions

View File

@ -13,8 +13,7 @@ module HTTPX
type timeout_type = :connect_timeout | :settings_timeout | :operation_timeout | :keep_alive_timeout | :total_timeout
type timeout = Hash[timeout_type, Numeric?]
def self.new: (options) -> instance
| () -> instance
def self.new: (?options) -> instance
def self.def_option: (Symbol, ?String) -> void
| (Symbol) { (*nil) -> untyped } -> void

View File

@ -3,11 +3,7 @@ module HTTPX
module Persistent
def self.load_dependencies: (singleton(Session)) -> void
interface _PersistentOptions
def persistent: () -> bool?
end
def self.extra_options: (Options) -> (Options & _PersistentOptions)
def self.extra_options: (Options) -> (Options)
end
type sessionPersistent = sessionFollowRedirects