Skip to content

Commit 81a09e7

Browse files
dduuggclaude
andcommitted
sorbet: enable experimental RSpec mode
Add `--enable-experimental-rspec` to the Sorbet config so that Sorbet type-checks RSpec spec files. This is an isolated piece of the work in #21690, separated so that the follow-up work of dialling up the `typed:` level of individual specs can land independently. Enabling the flag surfaced a pre-existing type error in `formula-analytics/pycall-setup.rbi` where `InfluxDBClient3#initialize` was incorrectly declared as a singleton method (`def self.initialize`) rather than an instance method (`def initialize`). Fixed here since the error is only visible with RSpec mode enabled. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4d4adf0 commit 81a09e7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Library/Homebrew/formula-analytics/pycall-setup.rbi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# typed: true
22

33
class InfluxDBClient3
4-
def self.initialize(*args); end
4+
def initialize(*args); end
55

66
def query(*args); end
77
end

Library/Homebrew/sorbet/config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
--dir=.
22
--enable-experimental-requires-ancestor
3+
--enable-experimental-rspec
34
--ignore=/vendor/bundle
45
--ignore=/vendor/gems
56
--ignore=/vendor/ruby

0 commit comments

Comments
 (0)