Kyle Into
90d · built 2026-11-06
Performance
What Kyle Into shipped in the selected window, measured in ETV, and how it compares with the 90 days before it.
Effective capacity
+3.8engineers
delivers like 4.8 (4.8x pre-AI)
Output (ETV)
36.8ETV
+253.3% vs 10.4 prior
Features share
30.7%
+14.1 pp vs prior window
Fixes share
18.0%
−13.8 pp vs prior window
Work mix
30.7% Features35.6% Maintenance13% Tests2.8% Docs18% Fixes
188 commits over 90 days, ending 2026-11-06.
Where this dev ranks
Percentile against the global top-100 leaderboard (all-time totals).
- By commits
- Top 24 %
- By Features share
- Top 72 %
Daily performance
Daily ETV, stacked by Features, Maintenance, Tests, Docs and Fixes.
Repository spread
Where this developer's commits land. Concentrated work (top1 > 80%) vs polymath spread (top1 < 30%).
Most impactful commits
Top 10 by ETV in the last 90 days.
- 15.6ETVUpgrade typeshed Summary: Stack context: Upgrade pyrefly's bundled typeshed, and fix the pyrefly problems that the upgrade exposes. - This diff upgrades the bundled typeshed from `a7bcce8` (2026-07-07) to upstream `main` at `7030b26`, and updates the test expectations that depend on the stubs. - The bundled stubs are more than three months old. Upstream has stub fixes that users report as pyrefly bugs, for example the 3.15 `frozendict` fixes. The diffs below this one fix the pyrefly problems that the new stubs expose. - The test updates follow from the new stubs: moved line numbers in `builtins.pyi` and `typing.pyi`, the removed `builtins.ellipsis` alias, and the new `_SupportsReversed` protocol. The `unused-coroutine` test for a Protocol `Coroutine` now uses the bundled stubs directly, so it moves from a custom-typeshed test in `test/state.rs` to a `testcase!`. I ran `crates/pyrefly_bundled/update.py` with docify enabled. The script downloaded the archive URL directly, because the GitHub API rate limit blocks the default `main` lookup through fwdproxy. Reviewed By: stroxler Differential Revision: D126992287 fbshipit-source-id: 903c56ea456a8c65682a8eecd3c4de2998bb50d9github.com-facebook-pyrefly · 75687253 · 2026-10-27
- 0.9ETVLet a build system supply per-target type checking config Summary: Stack context: A build system that owns a repository’s Python layout should be able to own its type checking settings too, so that users of a custom build system do not have to keep a parallel `pyrefly.toml` in sync with it. This stack lets the build system response carry named type checking configs, point each target at one, and name a default for everything else. External users with custom build systems (e.g. Arista Networks) need the build system to be the single source of truth for both import resolution and type checking settings. The response can already describe what a target’s sources are, but not how they should be checked. - Adds a top-level `configs` map of named type checking settings, and a per-target `config` naming one of them. Settings resolve target config → sub-config → root config → preset defaults; error settings merge by kind across those levels. - Targets name a shared config rather than spelling one out inline, because in a large repo the same handful of settings applies to thousands of targets. Naming them keeps the response small, and lets each config be deserialized into a `ConfigBase` at most once and cached on the `ConfigFile` — which matters because every per-file setting lookup consults the owning target’s config. The cache is cleared whenever the source database reports that it changed. Target configs accept the settings of a `ConfigBase`, the same ones a sub-config can override. Notably that does not include `preset`, which lives on `ConfigFile`. Reviewed By: connernilsen Differential Revision: D107113346 fbshipit-source-id: 6d0c11b9ba763b7864fe83f5f01e77e04df9e97agithub.com-facebook-pyrefly · 3d6cb73c · 2026-09-09
- 0.7ETVResolve `Self` to the TypeVar when subscripting a class-bounded TypeVar (#5258) Summary: Pull Request resolved: https://github.com/facebook/pyrefly/pull/5258 Subscripting a value whose type is a TypeVar bounded by a class (`seq[0:1]` with `S: SupportsSlice`) inferred the bound instead of `S` when `__getitem__` returns `Self`. Calling the method explicitly (`seq.__getitem__(slice(0, 1))`) already inferred `S`. The subscript path handled a bounded TypeVar by subscripting its bound, so `__getitem__` was looked up and called with the bound as the receiver, and `Self` resolved to the bound. Binary operators don't have this problem because they call the dunder on the TypeVar itself. For a TypeVar bounded by a class whose subscripts use the plain `__getitem__` call, we now call `__getitem__` on the TypeVar, the same way an explicit method call does. Attribute lookup on a bounded TypeVar binds `Self` to the TypeVar. Bounds with builtin subscript handling (lists, tuples, shaped arrays, `nn.ModuleDict`) still subscript the bound, so their precise indexing is kept. fixes https://github.com/facebook/pyrefly/issues/5257 Reviewed By: rchen152 Differential Revision: D125829160 fbshipit-source-id: 63c81f74c489a66f4d9ca82ffca62863a9741fe2github.com-facebook-pyrefly · 720fd6ae · 2026-10-27
- 0.6ETVKeep reliable variance evidence for writable callbacks Summary: Variance reached through a recursively referenced generic can be incomplete. Combining that fallback with direct evidence lets the recursive result override method and field uses. Writable callable fields were also treated as covariant even though both reads and writes make them invariant. Track reliable and fallback evidence separately, prefer direct evidence when available, and infer invariant variance for writable callable fields. This preserves generic descriptor binding while rejecting callback replacements that remove valid calling forms. Third of three commits split from the original change. Part of https://github.com/facebook/pyrefly/pull/4878 by Toby Harradine <tobyh@canva.com>. Reviewed By: stroxler Differential Revision: D119739486 fbshipit-source-id: 97f5087eda2c7a4bcd11d271a67f4783220d4c9egithub.com-facebook-pyrefly · 47f59fca · 2026-09-15
- 0.6ETVMark the truthy operand of `or` so that a falsy narrow removes it (#5514) Summary: Pull Request resolved: https://github.com/meta/pyrefly/pull/5514 Stack context: pyrefly keeps the falsy operand of `x and y` in the result after a truthy narrow, so `genre = author and author.genre; if genre:` still includes `Author`. - Problem: for `override: Config | None`, `config = override or default` has type `Config | Settings`, and `if not config:` keeps `Config`. `or` returns `override` only when it is truthy, so a falsy `config` is always `default`. This is the `or` form of the `and` problem. - Fix: add an internal `Truthy` type, the counterpart of `Falsy`. For each operand of `or` except the last, intersect every class instance whose truthiness is not statically known, except `int`, `str` and `bytes`, with `Truthy`: `override or default` is `(Config & Truthy) | Settings`. `IsFalsy` removes `Config & Truthy`. Like `Falsy`, `Truthy` is hidden from display and `assert_type`, so `override or default` still shows as `Config | Settings`. `int`, `str` and `bytes` are left unmarked: a falsy narrow already gives `0`, `""` and `b""` for them, and a literal default such as `name or ""` must still collapse to `str`, which py2hack needs. - A marked type can become the inferred type of an attribute or a container element: `self.base = base or Sub()` gives `self.base` the type `(Base & Truthy) | Sub`. So a truthiness marker does not restrict assignability: `x` is assignable to `A & Truthy` if it is assignable to `A`. Otherwise a later `self.base = base` is a false `bad-assignment`. - A union sorts a marked member as its unmarked type. An intersection sorts before every class, so otherwise the marker changes the member order of a union in error messages (`bool | list[str]` becomes `list[str] | bool`), and first-use inference of `out.extend(a or b)` with `a: list[Any]` and `b: list[bytes]` solves `out` from `list[Any]` first. This also applies to `Falsy`, and restores the union order that `test_boolean_and_object_operand` expected before `Falsy`. - A unary operator on an intersection looks up the dunder method on the intersection, as attribute access does. Otherwise `~((x and y) or C.NONE)` for a `Flag` `C` is a false `unsupported-operation`. CI error differentials: - mypy_primer (against the parent diff): +1712 / -1713. 1699 pairs are the same error with the union members back in their order before `Falsy`. 12 `implicit-bool` errors show a narrower type, because a falsy narrow removes the truthy operand of `or` (for example, zope.interface `ModuleType | None | bool` becomes `None | bool`): intended. schemathesis `_schema.py:3864` is fixed: the falsy value of `(only_required or not ...)` in the `and` chain is no longer the `dict`, so the chain is `Any | bool`: true fix. steam.py `state.py:488` is the same true-positive `bad-argument-type`; the argument shows as `UserMessage[ClientUser | Friend | User]` instead of `UserMessage`. - pytorch: 5 errors fixed, all `Unary - is not supported on Tensor & float` (torch/optim): true fixes from the unary-operator change. - instagram-server: no differential. Reviewed By: rchen152 Differential Revision: D129234807 fbshipit-source-id: d1c08e65114d575431aa34a4ab86b7b4a52c7089github.com-facebook-pyrefly · 9d121a0d · 2026-11-04
- 0.5ETVMark the falsy operand of `and` so that a truthy narrow removes it Summary: Stack context: pyrefly keeps the falsy operand of `x and y` in the result after a truthy narrow, so `genre = author and author.genre; if genre:` still includes `Author`. - Problem: for `author: Author | None`, `genre = author and author.genre` has type `Author | Genre | None`, and `if genre:` narrows it to `Author | Genre`. `and` returns `author` only when it is falsy, so a truthy `genre` is always a `Genre`. The type does not record that this `Author` is falsy: `Author` is not final, so a subclass can define a falsy `__bool__`, and the truthy narrow must keep a plain `Author`. The same happens with `dict` and other classes whose truthiness is not statically known, after an assignment or a walrus. - Fix: add an internal `Falsy` type. For each operand of `and` except the last, intersect every class instance whose truthiness is not statically known with `Falsy`: `author and author.genre` is `(Author & Falsy) | Genre | None`. An intersection is falsy if any member is, so `IsTruthy` removes `Author & Falsy`. Attribute access and assignability still use `Author`, so the falsy-subclass case stays sound. - `Falsy` only serves narrowing, so it is hidden from users: hovers, `reveal_type` and error messages show `Author & Falsy` as `Author`, and `assert_type` compares types with the marker removed. The type table that py2hack reads also shows the marked type without the marker, since py2hack cannot translate an intersection. `object & Falsy` keeps `object` when it is simplified, so `Falsy` never appears outside an intersection. - `Falsy` has no annotation syntax. D129227950 makes `pyrefly infer` write an intersection as its fallback type, so it writes `Author | Genre | None`. Reviewed By: rchen152 Differential Revision: D129227012 fbshipit-source-id: 0e0568a8e7c719e4da6512a6365578fc1bc4bee2github.com-facebook-pyrefly · a43357a5 · 2026-11-04
- 0.5ETVCache flat symbols for first-party modules Summary: Workspace features need nested declarations, but the export table intentionally contains only top-level names and retaining full syntax trees for every indexed module is unnecessarily expensive. Build a compact, source-ordered table of supported declarations with parent indices, and retain it only for first-party modules kept for indexing. The table preserves distinct declaration sites and enough scope information to distinguish methods from functions without retaining or reparsing the AST. This remains a small syntax-only pass because the existing passes have different data and lifetimes. Export collection stops at scope boundaries and merges logical bindings, so it cannot preserve nested source declarations, duplicate sites, or parent identity. Document-symbol collection runs only for an LSP request, depends on a retained AST, and builds presentation data such as owned strings, comment sections, and converted LSP ranges. The compact pass runs before AST eviction for indexed unopened files and reuses shared syntax rules such as `Ast::expr_lvalue` and `is_constant_name`. Reviewed By: grievejia Differential Revision: D115173206 fbshipit-source-id: f63325b33cea96cc23b6b0c871f1a94f444b1ef2github.com-facebook-pyrefly · 5b392caf · 2026-09-10
- 0.5ETVAdd a barrier that holds LSP queue events until the initial settings commit Summary: Stack context: Make the language server answer startup requests with the client's workspace settings instead of default settings. - This diff adds `InitialConfigurationEvents`, a wrapper around `LspQueue` that holds ordinary events until the initial workspace settings commit, then replays them in arrival order. The server returns the ID of the initial `workspace/configuration` request from `Server::new` and sends `InitialWorkspaceConfigurationApplied` when the settings commit. - The LSP loop and the TSP loop share `Server` and `LspQueue`, so they share this barrier. The next diff makes both loops read through it. Until then, the event loops ignore `InitialWorkspaceConfigurationApplied`. - The barrier waits for the commit, not for the response. When the settings change the interpreter or the search paths, the server rebuilds its state on the recheck thread. A request replayed before that commit runs against the old module graph. Reviewed By: samwgoldman Differential Revision: D116100498 fbshipit-source-id: 6a3eaf4029362a65e7de13e6d5af1fb5fc5cad52github.com-facebook-pyrefly · 780a3d0f · 2026-10-14
- 0.5ETVStore open-file versions with their contents in `OpenFiles` Summary: Stack context: Share open-document state and transaction management between the native LSP server and WASI hosts. Split from https://github.com/meta/pyrefly/pull/5455 by yeonwooson. - Problem: the native server keeps document contents in `open_files` and versions in `version_info`. A `textDocument/didClose` for a file that is open as a notebook removes the version but keeps the notebook open. A later `notebookDocument/didChange` with a lower version is then compared against 0 and accepted. - Fix: move the server to `OpenFiles`, which stores contents and version in one entry. A rejected close leaves the entry intact, and an edit replaces contents and version together only when it succeeds. - `OpenFiles::read` replaces `snapshot`, `paths`, and `versions`: readers take the read lock as before, instead of copying the map. Writes still go through `OpenFiles` methods, so contents and version stay together. - Also remove the unused `open_files` parameter of `will_rename_files`. Reviewed By: rchen152 Differential Revision: D128390074 fbshipit-source-id: 838300e1800f2549ace3df9300fbee5c635a53dcgithub.com-facebook-pyrefly · ca307f10 · 2026-11-05
- 0.4ETVTest startup settings in VS Code with the Python extension (#5226) Summary: Pull Request resolved: https://github.com/facebook/pyrefly/pull/5226 Stack context: Make the language server answer startup requests with the client's workspace settings instead of default settings. - This diff adds VS Code extension tests that run the real extension, the Python extension (`ms-python.python`), and the server. A small stdio shim between VS Code and the server controls the client's `workspace/configuration` responses. In `instant` mode, the shim forwards them at once. In `delay` mode, the shim holds them for 3 seconds, as a slow Python extension does. In `drop` mode, the shim discards the first response. - The Rust tests in this stack drive the server with a scripted client. These tests check the same behavior with the requests, the settings, and the interpreter that VS Code and the Python extension really send. With `instant` and `delay`, go-to-definition at startup must resolve into the virtual environment that only the Python extension names, and every diagnostic set that VS Code shows must come from the workspace settings. `delay` also checks that the definition request reached the server before the settings did. With `drop`, the server must still answer at startup. - The workspaces are built in a temporary directory, because Pyrefly finds a virtual environment near a project without the client's settings. Reviewed By: stroxler Differential Revision: D125113437 fbshipit-source-id: f4ccea33de8a713c4d224ecb161052912198245dgithub.com-facebook-pyrefly · 4b070996 · 2026-10-15