Skip to content

build(dependencies)📦: Add numpydoc to dependencies in pyproject.toml #10736

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ericmjl
Copy link
Contributor

@ericmjl ericmjl commented May 11, 2025

  • Include numpydoc for documentation generation in utils.py.

Resolves #10735.

- Include numpydoc for documentation generation in utils.py.
Copy link

vercel bot commented May 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 11, 2025 8:16pm

@CLAassistant
Copy link

CLAassistant commented May 11, 2025

CLA assistant check
All committers have signed the CLA.

@ericmjl
Copy link
Contributor Author

ericmjl commented May 11, 2025

@krrishdholakia @ishaan-jaff apologies for not tagging you guys earlier. Please let me know if there’s anything you believe I’ll need to do.

@msabramo
Copy link
Contributor

LGTM

@krrishdholakia
Copy link
Contributor

krrishdholakia commented May 11, 2025

Hey @ericmjl since numpydoc is not required to make a .completion() request, I'm hesitant to add it as a package requirement (more bloat).

Is there a reason it needs to be a required dependency?

@ericmjl
Copy link
Contributor Author

ericmjl commented May 11, 2025

Good point, @krrishdholakia! It becomes an issue when we use the function_to_dict function to convert a function into a tool schema. Is this planned to be supported long-term? If not, I’m happy to close the PR to save on deps and maintenance work.

@krrishdholakia
Copy link
Contributor

What would you want here @ericmjl

This seems similar to how integrations might have their own dependencies but it's not part of the core requirements.

@ericmjl
Copy link
Contributor Author

ericmjl commented May 11, 2025

I’m happy to follow your lead here! If I were to suggest, making it an optional dependency might be what I would go for.

@krrishdholakia
Copy link
Contributor

That sounds reasonable! Let's do that.

Feel free to update your PR to reflect that. Happy to merge it in.

…try.lock and pyproject.toml

- Set several packages as optional in poetry.lock.
- Add 'extra == "utils"' marker to various packages in poetry.lock.
- Update numpydoc dependency to be optional in pyproject.toml.
- Add 'utils' extra section in pyproject.toml with numpydoc.
@ericmjl
Copy link
Contributor Author

ericmjl commented May 11, 2025

@krrishdholakia can I check, are you ok with the current arrangement of deps, or would you prefer a different one?

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

Successfully merging this pull request may close these issues.

[Bug]: numpydoc is missing from dependencies
4 participants