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

Grid warnings #680

Open
jpsteil opened this issue Jan 20, 2022 · 0 comments
Open

Grid warnings #680

jpsteil opened this issue Jan 20, 2022 · 0 comments

Comments

@jpsteil
Copy link
Collaborator

jpsteil commented Jan 20, 2022

I want to add some code to Grid that would give developers some helpful warnings. I have 2 use cases so far.

  1. Deprecation - provide deprecation warnings when the code accesses a deprecated function or parameter. I'd like to use the Python warnings.DeprecationWarning for this purpose.
  2. I ran into a situation today where I'd coded a grid with a left join, but forgot to specify the field_id argument to tell grid which is my primary table. I'd like grid to throw a warnings.UserWarning in this situation to notify me that I have a left without a field_id.

I'm looking for input

  • are these valuable to add?
  • Is using the warnings module the right way to go about this?
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