python-qt-tools / PySide6-stubs

Stubs for Qt6 for Python/PySide6
GNU Lesser General Public License v2.1
16 stars 4 forks source link

use `ClassVar[]` for signals #4

Open altendky opened 1 year ago

altendky commented 1 year ago

https://github.com/python-qt-tools/PySide6-stubs/issues/1

Draft for:

altendky commented 1 year ago

@bluebird75, maybe you know offhand how to add a transform to include the ClassVar import?

bluebird75 commented 1 year ago

Thanks and good point.

I guess the whole codebase needs to be udpated with this change ?

For imports, I have no magic ideas. It's either going with CST parsing/updating or just considering .pyi files as a set of lines and use a simple heuristic to add the missing import.