-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move python Checked and Check types into baml_client (#1122)
This removes `Checked` and `Check` from `baml_py`. These two types depended on `BaseModel`, incurring a dependency on `pydantic`, which is not desirable for `baml_py`. Now that these types are part of `baml_client` (which already has a `pydantic` dep), `baml_py` itself can be installed without the `pydantic` dependency. <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Move `Checked` and `Check` types from `baml_py` to `baml_client` to remove `pydantic` dependency from `baml_py`. > > - **Behavior**: > - Move `Checked` and `Check` types from `baml_py` to `baml_client` to eliminate `pydantic` dependency in `baml_py`. > - Update references to `Checked` and `Check` in `generate_types.rs`, `mod.rs`, and `function_results.rs` to use the new location. > - **Types**: > - Add `Checked` and `Check` classes to `types.py` in `baml_client`. > - Implement `get_checks()` and `all_succeeded()` functions in `types.py`. > - **Imports**: > - Update imports in `async_client.py.j2`, `partial_types.py.j2`, and `sync_client.py.j2` to import `Checked` and `Check` from `baml_client/types.py`. > - **Misc**: > - Remove `constraints.py` from `baml_py` as it is no longer needed. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup> for 46c9b78. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information
1 parent
222cdd0
commit 0ccf473
Showing
16 changed files
with
87 additions
and
1,775 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
engine/language_client_python/python_src/baml_py/constraints.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.