Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update mode.py to warn in
Mode.FUNCTIONS
access vs. in __new__
Currently, any import of `instructor` raises a `DeprecationWarning`. This is noisy and also makes it impossible to have test suites raise an error on `DeprecationWarning`. Example code: ```python3 import warnings warnings.simplefilter("default") import instructor # raises `DeprecationWarning: FUNCTIONS is deprecated and will be removed in future versions enum_member = enum_class._new_member_(enum_class, *args)` ```
- Loading branch information