Skip to content

pygettext: false positives when extracting messages #126807

Closed
@tomasr8

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

Metadata

Metadata

Assignees

Labels

stdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions