tomasr8 · GitHub

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

Read the original on github.com ↗