You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to add some code to Grid that would give developers some helpful warnings. I have 2 use cases so far.
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.
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?
The text was updated successfully, but these errors were encountered:
I want to add some code to Grid that would give developers some helpful warnings. I have 2 use cases so far.
I'm looking for input
The text was updated successfully, but these errors were encountered: