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 52d44cb commit 7441c3dCopy full SHA for 7441c3d
src/virtualenv/discovery/cache.py
@@ -3,7 +3,10 @@
3
from abc import ABC, abstractmethod
4
from typing import Any
5
6
-from typing_extensions import Self
+try:
7
+ from typing import Self # Python ≥ 3.11
8
+except ImportError:
9
+ from typing_extensions import Self # Python < 3.11
10
11
12
class Cache(ABC):
0 commit comments