Skip to content

Commit 8b80ea8

Browse files
committed
Deprecate Any#todo!
Signed-off-by: Alexandre Terrasa <[email protected]>
1 parent 39f8a05 commit 8b80ea8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/rbs/types.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def to_s(level=0)
116116
@string || "untyped"
117117
end
118118

119+
# @deprecated: this method is now called from the constructor, do not call it from outside
119120
def todo!
120121
@string = '__todo__'
121122
self

sig/types.rbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ module RBS
115115

116116
def initialize: (location: Location[bot, bot]?, ?todo: bool) -> void
117117

118+
%a{steep:deprecated}
118119
def todo!: () -> self
119120
end
120121

0 commit comments

Comments
 (0)