Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flake8 config: remove line that exists only for Python-2 checking #7570

Merged
merged 2 commits into from
Apr 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,4 @@ per-file-ignores =
stubs/*.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F822, Y026, Y027
stdlib/typing.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F811, F822, Y026, Y034

# We are checking with Python 3 but many of the stubs are Python 2 stubs.
builtins = buffer,file,long,raw_input,unicode,xrange
exclude = .venv*,.git,*_pb2.pyi,stdlib/@python2/*
2 changes: 1 addition & 1 deletion stubs/humanfriendly/humanfriendly/compat.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ else:
unicode = unicode
unichr = unichr
basestring = basestring
interactive_prompt = raw_input
interactive_prompt = raw_input # noqa: F821 # exists as a builtin in Python 2, but not in Python 3
from StringIO import StringIO as StringIO

from HTMLParser import HTMLParser as HTMLParser
Expand Down