Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions core/encoding.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -923,8 +923,9 @@ class Encoding::Converter < Object
# p ec.primitive_convert(src, dst, nil, 1) #=> :destination_buffer_full
# p ec.last_error #=> nil
#
def last_error: () -> Encoding::InvalidByteSequenceError?
| () -> Encoding::UndefinedConversionError?
def last_error: () -> ( Encoding::InvalidByteSequenceError
| Encoding::UndefinedConversionError
| nil )

# <!--
# rdoc-file=transcode.c
Expand Down
3 changes: 1 addition & 2 deletions core/range.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -930,8 +930,7 @@ class Range[out Elem] < Object
#
# Related: Range#count.
#
def size: () -> Integer?
| () -> Float?
def size: () -> (Integer | Float | nil)

# <!--
# rdoc-file=range.c
Expand Down
4 changes: 2 additions & 2 deletions stdlib/ripper/0/ripper.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ class Ripper
# - to_a()
# -->
#
def to_a: () -> [ [ Integer, Integer ], Symbol, String, Ripper::Lexer::State, String ]
| () -> [ [ Integer, Integer ], Symbol, String, Ripper::Lexer::State ]
def to_a: () -> ( [ [ Integer, Integer ], Symbol, String, Ripper::Lexer::State, String ]
| [ [ Integer, Integer ], Symbol, String, Ripper::Lexer::State ] )
end

class State
Expand Down