From 73b0ddc88e96662f6a3890c6c50a2b86297fae9a Mon Sep 17 00:00:00 2001 From: NowanIlfideme Date: Mon, 11 Nov 2024 18:39:02 +0100 Subject: [PATCH] Fix pyright error about string syntax. --- src/pydantic_yaml/examples/base_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pydantic_yaml/examples/base_models.py b/src/pydantic_yaml/examples/base_models.py index 20d8108..1562c09 100644 --- a/src/pydantic_yaml/examples/base_models.py +++ b/src/pydantic_yaml/examples/base_models.py @@ -34,7 +34,7 @@ class B(BaseModel): class Recursive(BaseModel): """Recursive model, which is actually unsupported.""" - inner: "Recursive" | None + inner: "Recursive | None" a: int # Doesn't work!