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

Remove deprecated options #5740

Merged
merged 6 commits into from
Oct 5, 2018

Conversation

gvanrossum
Copy link
Member

These will now all fail with unrecognized arguments: <flag>

--disallow-any (message points to options replacing it)
-f/--dirty-stubs (ignored)
--use-python-path (exited with error message)
-s/--silent-imports (set ignore_missing_imports=True and follow_imports=skip)
--almost-silent (ses follow_imports=error)
--[no-]fast-parser (ignored)
--strict-boolean (actually did something, though questionable)

I've put the removal of --strict-boolean in a separate commit since it's more controversial -- some people might still be using it, even though it's been deprecated since May 2017. See discussion in #3195.

Guido van Rossum added 3 commits October 4, 2018 17:28
All print a message; most are ignored except where marked:

--disallow-any
-f/--dirty-stubs
--use-python-path (would exit with error message)
-s/--silent-imports (would set ignore_missing_imports=True and follow_imports=skip)
--almost-silent (would set follow_imports=error)
--[no-]fast-parser
(Putting this in a separate commit since it's more controversial --
since it did work, some people might still be using it, even though
it's been deprecated since May 2017.  See discussion in
python#3195.)
@Michael0x2a
Copy link
Collaborator

Regarding the strict-boolean flag -- maybe one idea might be to move that sort of logic into a separate plugin that's independent from mypy.

I've been vaguely thinking about doing this myself, actually -- I can never remember what's supposed to be truthy or falsey from language to language, so most of my personal code is written in a style where this sort of plugin would actually be mildly useful/not very noisy. I'm not sure if our plugin system would support these kinds of extensions yet though.

@gvanrossum
Copy link
Member Author

gvanrossum commented Oct 5, 2018 via email

@emmatyping
Copy link
Collaborator

Hm, it seems I did the wrong thing trying to make flake8 happy. Sorry!

@gvanrossum
Copy link
Member Author

gvanrossum commented Oct 5, 2018 via email

Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad to see so many negative lines of code and removed options. I think that it's fine to remove these deprecated options now.

@gvanrossum gvanrossum merged commit df4432f into python:master Oct 5, 2018
@gvanrossum gvanrossum deleted the remove-deprecated-options branch October 5, 2018 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants