Skip to content

Commit 343d32b

Browse files
committed
fix typing issues
1 parent 6f37b95 commit 343d32b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

rb/lib/selenium/webdriver/remote/http/default.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

rb/sig/lib/selenium/webdriver/remote/http/default.rbs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)