Skip to content

Commit 390b408

Browse files
committed
todo! is deprecated
1 parent 085abf5 commit 390b408

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

lib/rbs/types.rb

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,18 +109,14 @@ class Void < Base; end
109109
class Any < Base
110110
def initialize(location:, todo: false)
111111
super(location: location)
112-
todo! if todo
112+
if todo
113+
@string = "__todo__"
114+
end
113115
end
114116

115117
def to_s(level=0)
116118
@string || "untyped"
117119
end
118-
119-
# @deprecated: this method is now called from the constructor, do not call it from outside
120-
def todo!
121-
@string = '__todo__'
122-
self
123-
end
124120
end
125121
class Nil < Base; end
126122
class Top < Base; end

sig/types.rbs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ module RBS
114114
@string: String?
115115

116116
def initialize: (location: Location[bot, bot]?, ?todo: bool) -> void
117-
118-
%a{steep:deprecated}
119-
def todo!: () -> self
120117
end
121118

122119
class Nil < Base

0 commit comments

Comments
 (0)