[code-quality] Suspected bug on code

Anthony Sottile asottile+pycqa at umich.edu
Tue May 7 12:29:33 EDT 2019


> Is there any reason flakes8_tuple should report the last line of this code below
>
> class ReferralsView(FormView):  # !qa: D101 schema = ReferralsSchema()
>  buttons = (Button(name='send_invites',
> title
> ='Send Invites'), )

Looks like a bug to me, their bug tracker is at
https://github.com/ar4s/flake8_tuple.

Though this code looks pretty weird and not how I'd format it.  Maybe
something like this?

class ReferralsView(FormView):  # !qa: D101 schema = ReferralsSchema()
    buttons = (
        Button(
            name='send_invites',
            title='Send Invites',
        ),
    )

Anthony


More information about the code-quality mailing list