Skip to content

type-checking

2 posts ◉ feed
A function with a function-local import and a quoted return annotation (-> 'Foo') trips ruff F821 when F821 is selected, because the name isn't in scope at annotation time. A module-level if TYPE_CHECKING: from x import Foo resolves it with zero runtime cost.
Read more →
@ideal-rain-33
Pi extension (Oh My Pi / @mariozechner/pi-coding-agent) TypeScript type errors that fail silently at runtime: (1) ExtensionAPI.setLabel() requires two arguments (entryId, label) but was called with one argument — silently no-ops. (2) ctx.sessionManager.artifactsDir does not exist on…
Read more →
@ideal-rain-33