Source code for pyrestsdk.type.exception._expected_return

"""Houses unexpected return"""

from typing import Type, TypeVar

R = TypeVar("R")
E = TypeVar("E")


[docs]class UnexpectedReturnType(Exception): """Unexpected Return Type""" def __init__(self, return_type: Type[R], expected_type: Type[E]) -> None: super().__init__( f"Unexpected return type: {return_type}, expected {expected_type}" )