Skip to content

Fix completions for methods starting with _#15106

Merged
krassowski merged 3 commits intoipython:mainfrom
Darshan808:fix-private-attr-completions
Dec 22, 2025
Merged

Fix completions for methods starting with _#15106
krassowski merged 3 commits intoipython:mainfrom
Darshan808:fix-private-attr-completions

Conversation

@Darshan808
Copy link
Copy Markdown
Collaborator

Fixes #15104

Description

The current regex pattern only matches attribute access where the attribute name starts with a letter ([a-zA-Z]). This PR modifies the pattern to handle attributes starting with _ too.

Copy link
Copy Markdown
Member

@krassowski krassowski left a comment

Choose a reason for hiding this comment

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

The change looks good, should we also have end-to-end test?

Copy link
Copy Markdown
Member

@krassowski krassowski left a comment

Choose a reason for hiding this comment

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

Thank you @Darshan808!

@krassowski krassowski added this to the 9.9 milestone Dec 22, 2025
@krassowski krassowski merged commit 4d71bcf into ipython:main Dec 22, 2025
20 checks passed
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.

Completion no longer shows underscore methods when user types in _ since IPython 9.1

2 participants