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

Deprecation messages for regretted parameters should indicate which parameter is the deprecated one in the call itself #20

Open
Julian opened this issue Aug 15, 2020 · 0 comments

Comments

@Julian
Copy link
Owner

Julian commented Aug 15, 2020

I.e., currently, what will be shown when parameters are passed positionally (unfortunate as that may be):

    ...: DeprecationWarning: The 'first_name' parameter is deprecated.
      print(greeting("Joe", "Smith"))

whereas it would be helpful to visually indicate that the first parameter there is first_name at the call site.

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

No branches or pull requests

1 participant