Closed WillEngler closed 3 days ago
Attention: Patch coverage is 71.42857%
with 16 lines
in your changes missing coverage. Please review.
Project coverage is 74.52%. Comparing base (
a268082
) to head (2cd34cf
). Report is 1 commits behind head on main.
Files with missing lines | Patch % | Lines |
---|---|---|
garden_ai/gardens.py | 71.87% | 9 Missing :warning: |
garden_ai/modal/classes.py | 70.83% | 7 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
🚨 Try these New Features:
Second part of #198. Closes #198
Overview
This PR accommodates Modal class methods. They come over as metadata just as normal functions do - they just have dots in their names, like "MyClass.my_method". The SDK will construct wrappers on the fly so that users can invoke class methods like my_garden.MyClass.my_method
Discussion
Testing
Added a new unit test to exercise the chain of
__getattr__
s. Also did manual testing to check tab completion and HTML rendering.Manual testing was limited as I mostly used fixture data.
Documentation
Not yet, but this will definitely merit some mention in the docs
📚 Documentation preview 📚: https://garden-ai--554.org.readthedocs.build/en/554/