Avoid duplicate completions while defining methods
Sole Author: Patrick Ribbsaeter · Immutable Commit SHA: 941711b384d795a12b4413dd3daf0065fa37f93f
Language Server Protocol engine fix in Meta Pyrefly eliminating duplicate identifier and override completion candidates while authoring method signatures inside class bodies.

Commit 941711b
Merged Mainline
941711b
Immutable Git SHA
Rust
Compiler
52/52 CI Green
CI & Test Matrix
01 · Engineering problem
The failure mode
Method-definition autocompletion merged dedicated class/magic-method candidates with general value completions, emitting duplicate existing method names and leaking unrelated symbols.
02 · Technical response
What changed
- 01Isolated method-definition LSP completion to dedicated override and dunder candidate paths in Rust.
- 02Added LSP completion tests asserting single emission of prefixed class methods.
03 · Verified outcome
Evidence-backed result
- ✓Shipped upstream in meta/pyrefly at commit 941711b384d795a12b4413dd3daf0065fa37f93f.
04 · Cryptographic Git record
Immutable source evidence
Independent open-source engineering authored solely by Patrick Ribbsaeter. Company and project names identify the public repository context only under nominative fair use. No employment, client, vendor, or partnership relationship is implied unless explicitly stated.