From bf3c0de04d79253dbf681138bccb310a11784a2e Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Mon, 17 Jul 2023 09:46:39 +0100 Subject: [PATCH] fix type annotations for Url & MultiHostUrl build --- python/pydantic_core/_pydantic_core.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/pydantic_core/_pydantic_core.pyi b/python/pydantic_core/_pydantic_core.pyi index 11c4d611a..d90e99cb4 100644 --- a/python/pydantic_core/_pydantic_core.pyi +++ b/python/pydantic_core/_pydantic_core.pyi @@ -208,7 +208,7 @@ class Url(SupportsAllComparisons): path: Optional[str] = None, query: Optional[str] = None, fragment: Optional[str] = None, - ) -> str: ... + ) -> Self: ... class MultiHostUrl(SupportsAllComparisons): def __new__(cls, url: str) -> Self: ... @@ -239,7 +239,7 @@ class MultiHostUrl(SupportsAllComparisons): path: Optional[str] = None, query: Optional[str] = None, fragment: Optional[str] = None, - ) -> str: ... + ) -> Self: ... @final class SchemaError(Exception):