danijar / dreamerv3

Mastering Diverse Domains through World Models
https://danijar.com/dreamerv3
MIT License
1.36k stars 229 forks source link

AttributeError: type object 'Module' has no attribute '__annotations__' #124

Closed anji993 closed 6 months ago

anji993 commented 6 months ago

I encounter an object in line 418 in "dreamerv3/dreamerv3/ninjax.py"

k: getattr(cls, k) for k, v in cls.__annotations__.items()

AttributeError: type object 'Module' has no attribute 'annotations'

danijar commented 6 months ago

The code needs Python 3.10+.