Skip to content

Commit e6dc1f6

Browse files
committed
Enable strict mode for Steep type checking
Fix @encoder class instance variable declaration to use self.@encoder so Steep's strict diagnostics can resolve it on the singleton class.
1 parent 82ee313 commit e6dc1f6

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Steepfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ target :lib do
44
signature "sig"
55
check "lib"
66

7+
configure_code_diagnostics(Steep::Diagnostic::Ruby.strict)
8+
79
library "pathname"
810
library "securerandom"
911
library "stringio"

sig/http/form_data/urlencoded.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module HTTP
33
class Urlencoded
44
include Readable
55

6-
@encoder: _Encoder?
6+
self.@encoder: _Encoder?
77

88
# Sets custom form data encoder implementation
99
def self.encoder=: (untyped implementation) -> void

0 commit comments

Comments
 (0)