-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Correct the spelling of ArgSource.INVOCATION_DIR #11333
Conversation
INCOVATION_DIR = enum.auto() | ||
INVOCATION_DIR = enum.auto() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there are backwards-compatibility concerns, we could also add an alias:
INCOVATION_DIR = INVOCATION_DIR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we should add an alias, otherwise it'd be a breaking change.
Config.ArgsSource.INCOVATION_DIR remains as a backwards compatibility alias.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks (also for adding the tests)!
I'll add a note to the changelog that an alias remains.
Wouldn't it make sense to use a |
Deprecations == pain, IMO it's not worth it for something like an alias. |
I don't have a strong preference either way, but I'd be happy to implement this approach if it's more aligned with the project's norms. As an aside, the old (misspelled) symbol doesn't appear to have been used by any open source (on GitHub) code: https://github.com/search?q=INCOVATION_DIR+lang%3Apython&type=code ... but that is of course an incomplete view. |
This was spelled incorrectly when introduced in #9897.