Skip to content

Commit 9a1e375

Browse files
author
Christian-Sidak
committed
fix: annotate __reduce__ return type to satisfy pyright
1 parent 64601fd commit 9a1e375

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mcp/shared/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,5 @@ def from_error(cls, error: ErrorData) -> UrlElicitationRequiredError:
105105
elicitations = [ElicitRequestURLParams.model_validate(e) for e in raw_elicitations]
106106
return cls(elicitations, error.message)
107107

108-
def __reduce__(self) -> tuple:
108+
def __reduce__(self) -> tuple[Any, ...]:
109109
return (self.from_error, (self.error,))

0 commit comments

Comments
 (0)