Refactor typing_compat

This commit is contained in:
monosans
2024-01-25 18:12:36 +03:00
parent 330b607c59
commit e201011ed3
+3 -3
View File
@@ -2,9 +2,9 @@ from __future__ import annotations
import sys
if sys.version_info < (3, 11):
from typing_extensions import Any, Literal, Self
else:
if sys.version_info >= (3, 11):
from typing import Any, Literal, Self
else:
from typing_extensions import Any, Literal, Self
__all__ = ("Any", "Literal", "Self")