An unlikely but possible source of confusion is having a copy of the library file elsewhere within the directories that CircuitPython searches. For 6.2.0 this is:
- Code: Select all | TOGGLE FULL SIZE
Adafruit CircuitPython 6.2.0 on 2021-04-05; Adafruit CLUE nRF52840 Express with nRF52840
>>> import sys
>>> sys.path
['', '/', '.frozen', '/lib']
which means a
neopixel.mpy library file in the top-level (root) directory will have precedence over one in
/lib. I think it will also take a
neopixel.py over a
neopixel.mpy.
If you have truly erased your drive contents then this doesn't seem possible. I often have multiple boards plugged in and end up with many
CIRCUITPY drives. To make sure I get the correct one I leave an empty file with the name I've given to the board which I also physically scrawl onto the board.
Are you using 6.2.0 with the matching 6.x library bundle?