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

use model_dump instead of dict(*) in MarkdownJsonDictParse #471

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

wujiren
Copy link
Contributor

@wujiren wujiren commented Oct 23, 2024


name: Pull Request
about: Create a pull request

Description

[Please describe the background, purpose, changes made, and how to test this PR]
fix the bug issued in issue #466
add a test function test_markdownjsondictparser_with_nested_schema in tests/parser_test.py

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has passed all tests
  • Docstrings have been added/updated in Google Style
  • Documentation has been updated
  • Code is ready for review

@DavdGao DavdGao self-requested a review October 24, 2024 02:19
@DavdGao DavdGao added the enhancement New feature or request label Oct 24, 2024
@DavdGao DavdGao linked an issue Oct 24, 2024 that may be closed by this pull request
@DavdGao
Copy link
Collaborator

DavdGao commented Oct 24, 2024

Please check the failed unit test and run pre-commit run --all-files before git commit.

@wujiren
Copy link
Contributor Author

wujiren commented Oct 25, 2024

i fix the formatting problem and delete the test function i added.

Copy link
Collaborator

@DavdGao DavdGao left a comment

Choose a reason for hiding this comment

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

LGTM

@DavdGao DavdGao merged commit 7befaf8 into modelscope:main Oct 28, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]:don't use dict(self.pydantic_class(**response.parsed))
2 participants