Skip to content

[MISC] Make comments on build_pos_info concise - #906

Merged
hughperkins merged 1 commit into
mainfrom
hp/reduce-get-pos-info-comments
Sep 4, 2026
Merged

[MISC] Make comments on build_pos_info concise#906
hughperkins merged 1 commit into
mainfrom
hp/reduce-get-pos-info-comments

Conversation

@hughperkins

Copy link
Copy Markdown
Collaborator

Issue: #

Brief Summary

copilot:summary

Walkthrough

copilot:walkthrough

@hughperkins
hughperkins merged commit 505d7e4 into main Sep 4, 2026
24 of 27 checks passed
@hughperkins
hughperkins deleted the hp/reduce-get-pos-info-comments branch September 4, 2026 12:28

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7f379c62db

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

# node: `file`, `src`, `indent`, `lineno_offset` and the function name all derive from it and are identical
# across its transforms. Scoping it there also keeps it bounded by the function's lifetime and correct
# across a module reload, which hands out new FuncBase objects and so a new cache.
def memoized_get_pos_info(self, node: ast.AST) -> str:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep the established position-info helper name

For a commit scoped to making _build_pos_info comments concise, renaming get_pos_info here forces updates across every caller in two existing modules without changing behavior. Retain the existing method name and limit this cleanup to the comments and docstring so the change does not unnecessarily expand its contact area.

AGENTS.md reference: AGENTS.md:L9-L13

Useful? React with 👍 / 👎.

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

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.

1 participant