If we wanted to keep the "one-line" aspect, something like
`identity = lambda x: x` becomes `def identity(x): return x` though I
think putting the return statement on a separate line is less awkward to
read. Other opinions welcome.
--
Ticket URL: <https://code.djangoproject.com/ticket/26125>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* Attachment "26125.diff" added.
* owner: nobody => andersonresende
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/26125#comment:1>
* owner: andersonresende => userimack
--
Ticket URL: <https://code.djangoproject.com/ticket/26125#comment:2>
Comment (by timgraham):
@andersonresende, userimack is a new contributor who started this ticket
but forgot to assign it. Sorry for that.
--
Ticket URL: <https://code.djangoproject.com/ticket/26125#comment:3>
* needs_better_patch: 0 => 1
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/6028 PR] (not all errors are fixed
yet). Please uncheck "Patch needs improvement" when all errors are
resolved.
--
Ticket URL: <https://code.djangoproject.com/ticket/26125#comment:4>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/26125#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"60586dd7379b295b72d8af4e03423c286913b5e8" 60586dd7]:
{{{
#!CommitTicketReference repository=""
revision="60586dd7379b295b72d8af4e03423c286913b5e8"
Fixed #26125 -- Fixed E731 flake warnings.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26125#comment:6>