Repository navigation
Conversation
Follow dotted properties from an explicitly typed parameter, resolving each named type where its annotation is declared. Preserve the receiver shape across incremental extraction and emit inferred edges to the exact declared member. Refs Graphify-Labs#5585 Co-Authored-By: Codex <[email protected]>
|
Thanks for the pull request, @rvitaliy. A maintainer will review it soon. Want to talk it through while it is in review? Come join us on our Discord server. For longer-form discussion there is also GitHub Discussions. A couple of things that speed up review: make sure the test suite passes on Python 3.11 and 3.13, and that the change keeps extraction deterministic. |
There was a problem hiding this comment.
Graphify review 
No findings are available from the checks completed so far.
TypeScript extraction now records explicit property shapes and call paths through typed parameters, then resolves calls to uniquely visible member types.
What this review covered
- This review stopped before it finished; findings are from the part that ran.
- The AI model asked for code in a way the review could not use.
- We didn't review 1 file that isn't source code, such as docs, config, images, or generated or third-party code.
- A changed file's diff was too long to show in full, so the review may not have seen every changed line in it.
- 6 of 6 changed files inspected. This is scope, not a correctness guarantee.
Code graph · 6796 functions depend on this change
- 3 functions became more coupled.
walk()(1 callers),walk_calls()(1 callers),ts_direct_property_receiver()(1 callers). - 652 of 652 test files are affected by this change.
- Gate, test list and every flagged function: in the Graphify check.
Review stopped early on ae3aee8
|
Shipped in v0.9.123, landed via authorship-preserving cherry-pick so your commits keep your name. Thanks @rvitaliy! |
Change
Resolve direct TypeScript calls like
deps.port!.inspect()by following the parameter's declared property types. Each named type is resolved in the file that declares it, including imports through re-exports. Graphify records anINFERREDcall to the exact declared member.The regression tests cover inline and named object types, interfaces, nested properties, non-null assertions, literal-key
Pick, and incremental extraction. Calls with missing or ambiguous type evidence stay unlinked. The AST cache schema refreshes the new receiver metadata.I reproduced the missing edge in a pnpm workspace. With the patch, four calls from an API route resolve to their declared application interface.
Closes #5585.
Verification
uv run --locked pytest tests/ -q --tb=short -n 6 -m 'not serial'(12,059 passed)uv run --locked pytest tests/ -q --tb=short -m serial(282 passed)uv run --locked pytest tests/test_ts_typed_property_receivers.py -q(16 passed, including six cases that fail on the base commit)uv run --locked ruff check .anduv run --locked graphify update .(passed)uv run --locked pyright(same 785 diagnostics as the base commit)