Linear Time Variance Inference for PEP 695

We provide linear time algorithm for inferring the variance of type parameters declared using the Python syntax introduced in PEP 695.