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 21, 2023
1 parent a196e90 commit 69cedab
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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 Python 3.8
return type_._evaluate(core_schema.__dict__, None)


def main() -> None:
Expand Down

0 comments on commit 69cedab

Please sign in to comment.