File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
lib/selenium/webdriver/remote/http
sig/lib/selenium/webdriver/remote/http Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ class Default < Common
3434 # @param [Numeric] open_timeout - Open timeout to apply to HTTP client.
3535 # @param [Numeric] read_timeout - Read timeout (seconds) to apply to HTTP client.
3636 def initialize ( open_timeout : nil , read_timeout : nil )
37- @open_timeout = open_timeout
38- @read_timeout = read_timeout
37+ @open_timeout = open_timeout if open_timeout
38+ @read_timeout = read_timeout if read_timeout
3939 super ( )
4040 end
4141
Original file line number Diff line number Diff line change @@ -4,21 +4,21 @@ module Selenium
44 module Http
55 # @api private
66 class Default < Common
7- @open_timeout: Integer
7+ @open_timeout: Numeric
88
9- @read_timeout: Integer
9+ @read_timeout: Numeric
1010
1111 @http: untyped
1212
1313 @proxy: Proxy
1414
1515 attr_writer proxy: Proxy?
1616
17- attr_accessor open_timeout: Integer
17+ attr_accessor open_timeout: Numeric
1818
19- attr_accessor read_timeout: Integer
19+ attr_accessor read_timeout: Numeric
2020
21- def initialize : (?open_timeout: Integer ?, ?read_timeout: Integer ?) -> void
21+ def initialize : (?open_timeout: Numeric ?, ?read_timeout: Numeric ?) -> void
2222
2323 def close : () -> untyped
2424
You can’t perform that action at this time.
0 commit comments