Skip to main content

Python class

RequestType

RequestType

class max.pipelines.modeling.types.RequestType

source

Type variable for request types.

This TypeVar is bound to the Request protocol, ensuring that any type used with this variable must satisfy the Request protocol interface (have a request_id attribute and __str__ method). It is contravariant to allow protocols that accept requests to work with more specific request types.

alias of TypeVar(‘RequestType’, bound=Request, contravariant=True)