Skip to content

Commit 52d48ba

Browse files
committed
fix: add Mutex_m RBS type stubs for validation
The rbs-inline tool generates 'include Mutex_m' in the type signatures for Bayes and LSI classes, but RBS validation fails because it cannot find the Mutex_m type definition. Add vendor type stubs with the core mutex methods and their standard aliases (synchronize, lock, unlock, etc.) to satisfy both RBS validation and Steep type checking.
1 parent f3f0207 commit 52d48ba

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

sig/vendor/mutex_m.rbs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Type stubs for mutex_m gem
2+
module Mutex_m
3+
def mu_initialize: () -> void
4+
def mu_lock: () -> void
5+
def mu_unlock: () -> void
6+
def mu_synchronize: [T] () { () -> T } -> T
7+
def mu_try_lock: () -> bool
8+
def mu_locked?: () -> bool
9+
10+
# Aliases
11+
alias lock mu_lock
12+
alias unlock mu_unlock
13+
alias synchronize mu_synchronize
14+
alias try_lock mu_try_lock
15+
alias locked? mu_locked?
16+
end

0 commit comments

Comments
 (0)