Skip to content

Pyrefly show outgoing only shows outer calls. #5486

Open

Description

@aduernberger

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions