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._request_type is not None and issubclass(
pytype, cls._request_type
)
return False