Files
proxy-scraper-checker/proxy_scraper_checker/typing_compat.py
T

11 lines
219 B
Python
Raw Normal View History

2024-01-21 17:45:01 +00:00
from __future__ import annotations
import sys
2024-01-25 18:12:36 +03:00
if sys.version_info >= (3, 11):
2024-01-21 17:45:01 +00:00
from typing import Any, Literal, Self
2024-01-25 18:12:36 +03:00
else:
from typing_extensions import Any, Literal, Self
2024-01-21 17:45:01 +00:00
__all__ = ("Any", "Literal", "Self")