Skip to content

Commit

Permalink
uprev to 2.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Dec 20, 2023
1 parent 380d4b6 commit 8c73986
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "pydantic-core"
version = "2.14.5"
version = "2.15.0"
edition = "2021"
license = "MIT"
homepage = "https://github.com/pydantic/pydantic-core"
Expand Down
6 changes: 5 additions & 1 deletion generate_self_schema.py
Expand Up @@ -188,7 +188,11 @@ def all_literal_values(type_: type[core_schema.Literal]) -> list[any]:


def eval_forward_ref(type_: Any) -> Any:
return type_._evaluate(core_schema.__dict__, None, set())
try:
return type_._evaluate(core_schema.__dict__, None, set())
except TypeError:
# for older python (3.7 at least)
return type_._evaluate(core_schema.__dict__, None)


def main() -> None:
Expand Down

0 comments on commit 8c73986

Please sign in to comment.