Skip to content

Commit 0371bd7

Browse files
committed
Fixed [error] Cannot pass a value of type ::Hash[::Symbol, bool] as an argument of type ::String
``` lib/ruby_header_parser/parser.rb:257:58: [error] Cannot pass a value of type `::Hash[::Symbol, bool]` as an argument of type `::String` │ ::Hash[::Symbol, bool] <: ::String │ ::Object <: ::String │ ::BasicObject <: ::String │ │ Diagnostic ID: Ruby::ArgumentTypeMismatch │ └ lines = File.open(filepath, "rb") { |f| f.readlines(chomp: true) } ~~~~~~~~~~~ ```
1 parent 9285dba commit 0371bd7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sig/non-gemify/io.rbs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class IO
2+
def readlines: (?String sep, ?Integer limit, ?chomp: bool) -> ::Array[String]
3+
| ...
4+
end

0 commit comments

Comments
 (0)