I feel like this should be fine:
from types import EllipsisType
some_variable: type[EllipsisType] = type(...)
But if I run cargo run -p red_knot --project ../experiment --python-version="3.10", red-knot complains:
error[lint:invalid-assignment] /Users/alexw/dev/experiment/foo.py:3:1 Implicit shadowing of class `EllipsisType`; annotate to make it explicit if this is intentional
I'm not sure what exactly red-knot thinks I'm shadowing here 😄 The variable must be explicitly annotated for the error to occur.