Skip to content

Commit

Permalink
Fix setting docstring on variable error
Browse files Browse the repository at this point in the history
  • Loading branch information
linkous8 committed May 14, 2024
1 parent 0a696d4 commit d9c5cb9
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions servo/types/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import operator
from typing import (
Any,
Annotated,
AsyncIterator,
Awaitable,
Callable,
Expand Down Expand Up @@ -83,13 +84,16 @@ def default_handler(obj) -> Any:
raise err


BASE_MODEL_CONFIG = {
"validate_assignment": True,
}
BASE_MODEL_CONFIG.__doc__ = """
BaseModelConfigDict = Annotated[
pydantic.ConfigDict,
"""
The `BaseModelConfig` class provides a common set of Pydantic model
configuration shared across the library.
"""
""",
]
BASE_MODEL_CONFIG: BaseModelConfigDict = {
"validate_assignment": True,
}


class BaseModel(pydantic.BaseModel):
Expand Down

0 comments on commit d9c5cb9

Please sign in to comment.