diff --git a/stdlib/pp/0/pp.rbs b/stdlib/pp/0/pp.rbs index c543439a5..c09968e17 100644 --- a/stdlib/pp/0/pp.rbs +++ b/stdlib/pp/0/pp.rbs @@ -59,9 +59,9 @@ class PP < PrettyPrint VERSION: String interface _PrettyPrint - def pretty_print: (untyped q) -> untyped + def pretty_print: (untyped q) -> void - def pretty_print_cycle: (untyped q) -> untyped + def pretty_print_cycle: (untyped q) -> void def is_a?: (Module) -> bool end @@ -127,7 +127,7 @@ class PP < PrettyPrint # Object#pretty_print_cycle is used when `obj` is already printed, a.k.a the # object reference chain has a cycle. # - def pp: (_PrettyPrint obj) -> untyped + def pp: (_PrettyPrint obj) -> void # # A present standard failsafe for pretty printing any given Object # - def pp_object: (untyped obj) -> untyped + def pp_object: (untyped obj) -> void # # A pretty print for a Hash # - def pp_hash: (untyped obj) -> untyped + def pp_hash: (untyped obj) -> void end include PPMethods @@ -220,13 +220,13 @@ class PP < PrettyPrint end module ObjectMixin : BasicObject - def pretty_print: (PP q) -> untyped + def pretty_print: (PP q) -> void - def pretty_print_cycle: (PP q) -> untyped + def pretty_print_cycle: (PP q) -> void def pretty_print_instance_variables: () -> Array[Symbol] - def pretty_print_inspect: () -> untyped + def pretty_print_inspect: () -> String end #