def check_type()

in azurefunctions-extensions-base/azurefunctions/extensions/base/web.py [0:0]


    def check_type(cls, pytype: type) -> bool:
        if pytype is not None and inspect.isclass(pytype):
            return cls._response_types is not None and any(
                issubclass(pytype, response_type)
                for response_type in cls._response_types.values()
            )
        return False