Skip to content

Conversation

@jstucke
Copy link
Collaborator

@jstucke jstucke commented Aug 28, 2023

The last scheduled master CI build had 43624 warnings when running the tests. This PR should reduce this number to less than 30. There are some warnings that can't be fixed because they are caused by dependencies or where it is too complicated (the crypto_hints plugin should be fixed in its own PR).

@jstucke jstucke requested a review from maringuu August 28, 2023 11:48
@jstucke jstucke self-assigned this Aug 28, 2023
src/conftest.py Outdated
import pytest
from pydantic import BaseModel, Field
from pydantic.utils import deep_update
from pydantic.v1 import ConfigDict
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we need this, what is the v2 way of doing things?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hmm weird. According to the docs you can directly import it from pydantic:

from pydantic import BaseModel, ConfigDict

class Model(BaseModel):
    model_config = ConfigDict(str_max_length=10)

Maybe I used the auto import fix in pycharm.

Copy link
Collaborator

@maringuu maringuu left a comment

Choose a reason for hiding this comment

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

lgtm!

@maringuu maringuu merged commit a31382a into master Sep 18, 2023
@maringuu maringuu deleted the fix-deprecation-warnings branch September 18, 2023 07:37
jstucke added a commit that referenced this pull request Dec 2, 2025
since the changes in #1119 Markup (which was previously imported from flask) only depends on MarkupSafe
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.

3 participants