Refactor typing_compat
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user