Hi! In python3.12 new syntax was introduced for annotating class types:
https://docs.python.org/3/library/typing.html#the-type-of-class-objects
instead of using deprecated typing.Type[C] now type[C] should be used.
I just noticed that autocomplete in pylsp doesn't pick up new syntax yet.
the old syntax works:
I tested on the latest version of pylsp:
$ pylsp --version
pylsp v1.13.2.dev1+g89265cdb7