diff --git a/core/encoding.rbs b/core/encoding.rbs index 425e38ae6..349b62ec9 100644 --- a/core/encoding.rbs +++ b/core/encoding.rbs @@ -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 ) # # - 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