You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Extension version (available under the Extensions sidebar): 2018.11.0
OS and version: macOS 10.14.1 (18B75)
Python version (& distribution if applicable, e.g. Anaconda): 3.6.6
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): pyenv
Relevant/affected Python packages and their versions: N/A
Expected behaviour
Given the following code:
class C:
EVENTS = ["x"]
x = [(e, e) for e in EVENTS]
y = EVENTS
The linter should discover no issues.
Actual behaviour
The use of EVENTS in the definition of x is linted as "used before definition" (use-before-def). (The definition of y does not generate a linter message.)
Steps to reproduce:
Create python 3.6 file with above code.
Python: Run Linting
Logs
None
Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)
None
The text was updated successfully, but these errors were encountered:
@rnapier commented on Thu Dec 06 2018
Environment data
Expected behaviour
Given the following code:
The linter should discover no issues.
Actual behaviour
The use of
EVENTS
in the definition ofx
is linted as "used before definition" (use-before-def). (The definition ofy
does not generate a linter message.)Steps to reproduce:
Logs
None
Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
)None
The text was updated successfully, but these errors were encountered: