I have recently discovered that the microbit makecode editor requires to know the type of list before runtime. I have been using typehints to achieve this like so:
enemies: List[game.LedSprite] = 
however when trying to make a list of integers I could not get it to work
I have tried all of these:
purge: List[int] = 
purge: List[Number] = 
purge: List[Integer] = 
yet none of these work!
In order to make this work I need to use a really jank solution:
purge = 
Surely there must be a way to do this with typehints, if you know please let me know.