We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 363217b commit 6c6dcecCopy full SHA for 6c6dcec
src/sage/repl/rich_output/display_manager.py
@@ -37,7 +37,10 @@
37
import warnings
38
from typing import Any
39
40
-from typing_extensions import Self
+try:
41
+ from typing import Self # type: ignore (Python >= 3.11)
42
+except ImportError:
43
+ from typing_extensions import Self # type: ignore (Python 3.9, 3.10)
44
45
from sage.repl.rich_output.output_basic import (
46
OutputAsciiArt,
0 commit comments