f811 error is showing in wrong place

Bug #1459257 reported by Chillar Anand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pyflakes
Incomplete
Undecided
Unassigned

Bug Description

Reporting upstream of this https://gitlab.com/pycqa/flake8/issues/60

when i redefine a function with a decorator(s), f811 error is showing at decorator instead of actual definition

Revision history for this message
Ian Cordasco (icordasc) wrote :

To be clear, I'm rather confident that this is fixed in master/trunk.

Revision history for this message
Phil Frost (bitglue) wrote :

Can you please include an example that reproduces the error?

Changed in pyflakes:
status: New → Incomplete
Revision history for this message
Chillar Anand (chillaranand) wrote :

I have installed from master and i am still getting error.

Code to reproduce it

```
def dashboard(request, conference_slug):
    pass

@login_required
@require_http_methods(['GET'])
def dashboard(request, conference_slug):
    conference = get_object_or_404(Conference, slug=conference_slug)
```

Screenshot attached.

Revision history for this message
Chillar Anand (chillaranand) wrote :

Update:

$ flake8 --version
2.4.0 (pep8: 1.5.7, mccabe: 0.3, pyflakes: 0.8.2a0) CPython 2.7.6 on Linux

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.