Skip to content

Enough type hints to be dangerous (Closed #3)

Passing pyright on one of the examples is for sure a win! But its still not covering everything and could use a lot of polish. For example the cursed list like structures are not smoothly typed. Right now the types let you do this:

map.groups[0].layers[1].quads.position

Which is wrong. But at least the correct case is also supported:

map.groups[0].layers[1].quads[0].position

UPDATE:

There is now a proper differentiation between the sequence and the entry types.

Edited by Chiller Dragon

Merge request reports

Loading