Skip to content

Commit

Permalink
change to union
Browse files Browse the repository at this point in the history
  • Loading branch information
collerek committed Feb 6, 2024
1 parent 606f068 commit 08d8b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ormar/models/newbasemodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ def json( # type: ignore # noqa A003
category=OrmarDeprecatedSince020,
)
def construct(
cls: Type["T"], _fields_set: set[str] | None = None, **values: Any
cls: Type["T"], _fields_set: Union[Set[str], None] = None, **values: Any
) -> "T": # pragma: no cover
warnings.warn(
"The `construct` method is deprecated; use `model_construct` instead.",
Expand Down

0 comments on commit 08d8b02

Please sign in to comment.