Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[undocumented] Optionally export line-level information about references #14805

Merged
merged 2 commits into from
Feb 28, 2023

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Feb 28, 2023

When run with --export-ref-info, store line-level reference information in the cache, in a JSON file with a .refs.json extension. It includes the line numbers and targets of each RefExpr in the program. This only works properly if incremental mode is disabled.

The target can either be a fullname, or *.name for an name attribute reference where the type of the object is unknown.

This is an undocumented, experimental feature that may be useful for certain tools, but it shouldn't be used in production use cases.

When run with `--export-ref-info`, store line-level reference information
in the cache, in a JSON file with a `.refs.json` extension. It includes the
line numbers and targets of each RefExpr in the program. This only works
properly if incremental mode is disabled.

The target can either be a fullname, or "*.<attr>" for
an attribute reference where the type of the object is unknown.

This is an undocumented, experimental feature that may be useful for
certain tools, but it shouldn't be used in production use cases.
@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@JukkaL JukkaL merged commit de26134 into master Feb 28, 2023
@JukkaL JukkaL deleted the line-level-deps branch February 28, 2023 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants