Restoring the version to its previous state

Yesterday the code was working, but now I accidentally modified it and it’s giving the following error message:
How could I restore the code to its previous state?

Traceback (most recent call last):
File “”, line 1, in
import discord
File “/home/runner/RokaJK/venv/lib/python3.10/site-packages/discord/”, line 22, in
from ._version import *
File “/home/runner/RokaJK/venv/lib/python3.10/site-packages/discord/”, line 32, in
from ._typed_dict import TypedDict
File “/home/runner/RokaJK/venv/lib/python3.10/site-packages/discord/”, line 31, in
from typing_extensions import NotRequired, Required, TypedDict
ImportError: cannot import name ‘NotRequired’ from ‘typing_extensions’ (/home/runner/RokaJK/venv/lib/python3.10/site-packages/

Hey @FriiPentaliz!

In the Repl click the History button in the bottom right of the code workspace, and you can rewind it to the place where it was working. Hope this helps!

1 Like