pyrefly icon indicating copy to clipboard operation
pyrefly copied to clipboard

Pyrefly show outgoing only shows outer calls.

Open aduernberger opened this issue 1 month ago • 2 comments

Describe the Bug

With pyrefly 1.4. Showing outgoing calls on caller only shows outer. Doing the same with pyright shows outer and inner. In vscode go to caller -> right click -> peek call hierarchy -> top right corner "show outgoing calls". The test here was without a toml file.

def inner():
    return 1

def outer(value):
    return value

def caller():
    outer(inner())

Table generated by claude. I did verify in VSCode with pyright and pyrefly. Pyright shows all of them in outgoing calls.

Call Listed
plain = one(), for item in eight():, return A.run(self) yes
if two() == 0: no
[four() for item in items] no
{'key': five()} no
str(seven()) str maybe*, seven no

* I am not 100% sure about it. In pyright it is shown as str in pyrefly there is a __new__ that marks the line with str when I click it. So shown but as __new__ instead of str?

Sandbox includes the file I used to verify the table in test2.py and also the one referenced on top here. Both files are generated by AI.

Sandbox Link

https://pyrefly.org/sandbox/?project=v2.pZXBroIwFER_pXkueC8xVs1LTNjxB-7FhVFEommNgC6M_-703gu2IG7c1uktnZkeh5DpIiwMGPjbVELqMHMJcFFtDXRweTqi9k2wcAvrvEm8T6b_9X0cqSUvKPkkEAQB5DU4BWMnqRkBUZk6VNW5jLVutttLrjOjd3Zb6mCHVq4ym-umIPqF45Sl3EuM_SbAiPOLPsUXufSgkHjmbLWYaTJ-LujwoONZkR8qlhHYoF2H4tVsrOYEO95R3ezA2OlLtLc1knir-vdUuCirAIpQlaJFV-puIy7xpyTvvzdzwTKmceJx-FIbwmbnkOAge_SPkWa5TbFKxgH1nTmdSecT3gyCILN5yYeJ2Osdy4xoCctugk_TWL0XrcTLHqOQifv9nv6gEoCa2PngZXwiLkGWEeK8KyeTly2oTvcxt0V6PAE

(Only applicable for extension issues) IDE Information

Pyrefly 1.4 in vscode, pyright in vscode. Both also tested by claude asking a server directly without the add-on.

aduernberger avatar Nov 02 '26 12:11 aduernberger

#claim

Sano007 avatar Nov 15 '26 17:11 Sano007

@Sano007 I've assigned the issue to you. Our claim automation was down over the weekend - sorry about that!

rchen152 avatar Nov 16 '26 20:11 rchen152