Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As of Python 3.9.8, this does not work with Pydantic BaseModel, and does not work in a way that causes the whole module to fail to import. See pydantic/pydantic#3401. In general, Pydantic does not work well with string types as enabled by from __future__ import annotations, which is why making that feature the default has been delayed. See https://lwn.net/Articles/858576/ for more information. Fix this by removing from __future__ import annotations from the files using ClassVar and explicitly quote the type arguments that contain forward references (all of which are outside the scope of what Pydantic cares about).
- Loading branch information
Showing
2 changed files
with
7 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters