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

Improve ergonomics of using @deprecate_arg and @deprecate_func in other repos #9682

Closed
Eric-Arellano opened this issue Feb 28, 2023 · 1 comment
Assignees

Comments

@Eric-Arellano
Copy link
Collaborator

Eric-Arellano commented Feb 28, 2023

While #9676 lets other repos set package_name, that is annoying to have to do every single call. It's also easy to forget!

How can we improve this? Some unexplored ideas:

  • Try to automate some of it by e.g. looking at the __module__.
  • Applications wrap the decorators and set package_name automatically, i.e. argument fixing / function currying.
  • Applications mutate some global variable?
@Eric-Arellano
Copy link
Collaborator Author

Imo this is low priority. It would still be neat, but seems unlikely we'll get to this. Feel free to reopen if others disagree.

@Eric-Arellano Eric-Arellano closed this as not planned Won't fix, can't repro, duplicate, stale Apr 9, 2024
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