Skip to content

pygettext: false positives when extracting messages #126807

Closed

Description

@tomasr8

Bug report

Bug description:

Originally came up here: #126755 (comment)

To summarize, pygettext produces a warning for this code:

def _(x):
    pass

The reason is that it confuses the function definition with a function call. I have a PR ready.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Activity

  1. self-assigned this
    on Nov 13, 2024
  2. added
    stdlibStandard Library Python modules in the Lib/ directory
    on Nov 14, 2024
  3. added a commit that references this issue on Nov 14, 2024
  4. added 2 commits that reference this issue on Nov 14, 2024
  5. added 2 commits that reference this issue on Nov 14, 2024
  6. added a commit that references this issue on Dec 8, 2024
  7. added a commit that references this issue on Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions