There are many module level containers with constants. By replacing the mutable containers with immutable variants (e.g. replace a set with a frozenset or a list with a tuple) we improve performance ...
On Python 3.9–3.10, the tuple[...] type is an instance of types.GenericAlias. Warp's type system doesn't seem to handle those correctly and instead tries to treat ...