Introducing Type Guard to Steep
summary
Adds a TypeGuard engine to Steep that actually narrows unions (PR #1497 merged, released in Steep 1.10) and recognizes calls like ActiveSupport's present/blank for nil checks, demonstrated with a VS Code RBS-inline workflow that updates types on save. Also lands an initial TypeGuard for Union Types implementation and a draft user-defined type guard (supports only `self is Type` so far), with known limits: guards only narrow not widen and else-branch subtraction often fails.
AI-written summary · about
chapters (5)
- 0:00Introduction
- 4:56What is TypeGuard
- 8:58TypeGuard for Union Types
- 17:55User-defined TypeGuard
- 29:00Summary and thanks
related talks
37mChecking Your Types: An Overview of Ruby's Type System
39mType Checking Ruby Programs with Annotations
53mAn introduction to typed Ruby programming
01h 01mDeconstructing TypeScript’s Type System
38mSafer TypeScript
01h 05mBusy TypeScript Developer’s Guide to Advanced TypeScript
24mTypeScript for JavaScripties
49mThe Trouble With Types
