Skip to content

Commit 4d5e657

Browse files
committed
Apply a type patch.
rbs v3 does not have a type definition for `ruby2_keywords`, so it cannot pass type checking. We will apply a patch to address this, expecting the type to be added in rbs v4.
1 parent 23a6efc commit 4d5e657

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

Steepfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ target :lib do
1515
signature "stdlib/rdoc/0/"
1616
signature "stdlib/ripper/0"
1717
signature "stdlib/pp/0"
18+
signature "steep/patch.rbs"
1819

1920
# configure_code_diagnostics do |config|
2021
# config[D::Ruby::MethodDefinitionMissing] = :hint

steep/patch.rbs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Remove here if duplicated
2+
3+
class Module
4+
def ruby2_keywords: (*untyped) -> void
5+
end
6+
7+
class Proc
8+
def ruby2_keywords: () -> self
9+
end

0 commit comments

Comments
 (0)