Skip to content
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

Suppress griffe logging related to return type #606

Merged
merged 2 commits into from
Jan 6, 2025

Conversation

dmontagu
Copy link
Contributor

@dmontagu dmontagu commented Jan 3, 2025

Closes #491, based on the suggestion in mkdocstrings/griffe#293 (comment).

I don't love the approach, but it seems like the simplest option and non-invasive enough to be worthwhile.

Feel free to close the PR if you don't want to go down this route.

@samuelcolvin let me know if you want me to add a test using caplog or similar.

Copy link
Member

@samuelcolvin samuelcolvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise LGTM.

pydantic_ai_slim/pydantic_ai/_griffe.py Outdated Show resolved Hide resolved
Copy link
Member

@samuelcolvin samuelcolvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise LGTM.

Please can we add a test.

Copy link

cloudflare-workers-and-pages bot commented Jan 6, 2025

Deploying pydantic-ai with  Cloudflare Pages  Cloudflare Pages

Latest commit: d04b79e
Status: ✅  Deploy successful!
Preview URL: https://6af6fe0a.pydantic-ai.pages.dev
Branch Preview URL: https://dmontagu-suppress-griffe-log.pydantic-ai.pages.dev

View logs

Copy link

sonarqubecloud bot commented Jan 6, 2025

@dmontagu
Copy link
Contributor Author

dmontagu commented Jan 6, 2025

Addressed feedback and added test confirmed to fail on main

@samuelcolvin samuelcolvin merged commit 72300ae into main Jan 6, 2025
16 checks passed
@samuelcolvin samuelcolvin deleted the dmontagu/suppress-griffe-logging branch January 6, 2025 17:57
freddyaboulton pushed a commit to freddyaboulton/pydantic-ai that referenced this pull request Jan 6, 2025
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.

Cannot process return type annotations for pydantic types
2 participants