Skip to content

Fix RBS type errors#280

Open
sferik wants to merge 3 commits intoruby:masterfrom
sferik:fix-rbs-type-errors
Open

Fix RBS type errors#280
sferik wants to merge 3 commits intoruby:masterfrom
sferik:fix-rbs-type-errors

Conversation

@sferik
Copy link
Contributor

@sferik sferik commented Mar 6, 2026

See #278 for context.

@sferik sferik force-pushed the fix-rbs-type-errors branch 2 times, most recently from 5aaff92 to de74c1d Compare March 12, 2026 02:00
Adjust library code to make dynamic behavior explicit for the type
checker with small, behavior-preserving changes: add local narrowing,
nil guards, key coercions, read_body call shaping, and a few
compatibility-focused internal fixes.
@sferik sferik force-pushed the fix-rbs-type-errors branch from de74c1d to c1b8ffc Compare March 17, 2026 19:43
sferik added 2 commits March 17, 2026 12:59
Update the public RBS to better match actual net/http behavior around
URI handling, nilable headers and response bodies, exception classes,
and request/response entry points.

Keep shipped signatures in sig/ focused on net/http’s public API, and
add a separate *-impl.rbs files for implementation-only declarations
used only by Steep when typechecking lib/.

The *-impl.rbs files cover internal protocol classes, helper methods,
constants, and stdlib gaps needed by the implementation, without
shipping those internal details as part of the gem’s public RBS.
@sferik sferik force-pushed the fix-rbs-type-errors branch from c1b8ffc to 87d1e45 Compare March 17, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant