Skip to content

Commit bf3c0de

Browse files
committed
fix type annotations for Url & MultiHostUrl build
1 parent e3ceb4b commit bf3c0de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/pydantic_core/_pydantic_core.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ class Url(SupportsAllComparisons):
208208
path: Optional[str] = None,
209209
query: Optional[str] = None,
210210
fragment: Optional[str] = None,
211-
) -> str: ...
211+
) -> Self: ...
212212

213213
class MultiHostUrl(SupportsAllComparisons):
214214
def __new__(cls, url: str) -> Self: ...
@@ -239,7 +239,7 @@ class MultiHostUrl(SupportsAllComparisons):
239239
path: Optional[str] = None,
240240
query: Optional[str] = None,
241241
fragment: Optional[str] = None,
242-
) -> str: ...
242+
) -> Self: ...
243243

244244
@final
245245
class SchemaError(Exception):

0 commit comments

Comments
 (0)