Skip to content

F821 for builtins? #118

@asottile

Description

@asottile

In GitLab by @przemyslaw-hejman on Jul 17, 2015, 01:14

Hey, I've recently cracked into such an issue:

./base/tests/test_graphite.py:78:44: F821 undefined name 'ConnectionRefusedError'

Of course I did not import that explicitly as these are builtins: https://docs.python.org/3/library/exceptions.html

Using flake8==2.4.1

For now solving that with tox config:

[flake8]
ignore = F821

but i think this error should also consider builtins - or maybe it does and I'm doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions