Skip to content

Commit bc59aa0

Browse files
committed
Add deprecated annotation to attr with bool args
1 parent 7955049 commit bc59aa0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/module.rbs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1694,7 +1694,8 @@ class Module < Object
16941694
# `attr_reader(name)` but deprecated. Returns an array of defined method names
16951695
# as symbols.
16961696
#
1697-
def attr: (*interned arg0) -> Array[Symbol]
1697+
def attr: %a{deprecated} (interned, bool) -> Array[Symbol]
1698+
| (*interned arg0) -> Array[Symbol]
16981699

16991700
# A previous incarnation of `interned` for backward-compatibility (see #1499)
17001701
%a{deprecated: Use `interned`}

0 commit comments

Comments
 (0)