That doesn't work. You need to import from another module, and usualy you do this importing in the beginning of the file. If you just want to call the DHT22 class, just call it directly, it's right above there.
:-)) Yep The real reason is the new version of Micropython includes its own DHT22 module.
The fix is simply to change the name.
I made a update and the module is not called PicoDHT22.
I will check it tonight
https://github.com/danjperron/PicoDHT22/blob/b92d34f2fa9b3168cf32d42107c79a555a974fb6/DHT22.py#L175
That doesn't work. You need to import from another module, and usualy you do this importing in the beginning of the file. If you just want to call the DHT22 class, just call it directly, it's right above there.