'Having problem with django makemigration model.py file(message after running django : can;t import the name self)

when i run the manage.py file this is the message i ge:

(base) abu@lenovo:~/Desktop/paris_sportif$ python3 manage.py makemigrations

ImportError: cannot import name 'self' from 'typing_extensions' (/home/abu/anaconda3/lib/python3.9/site-packages/typing_extensions.py)

Here is my code



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source