general: switch to using native 3.8 versions for cached_property/Literal/Protocol instead of compat

This commit is contained in:
Dima Gerasimov 2023-05-16 01:01:48 +01:00
parent fe2c99f037
commit 0e9624e354
16 changed files with 29 additions and 98 deletions

View file

@ -5,7 +5,7 @@ Various pandas helpers and convenience functions
# NOTE: this file is meant to be importable without Pandas installed
from datetime import datetime
from pprint import pformat
from typing import Optional, TYPE_CHECKING, Any, Iterable, Type, Dict
from typing import Optional, TYPE_CHECKING, Any, Iterable, Type, Dict, Literal
from . import warnings, Res
from .common import LazyLogger, Json, asdict
@ -45,8 +45,6 @@ def check_dateish(s) -> Iterable[str]:
'''.strip()
from .compat import Literal
ErrorColPolicy = Literal[
'add_if_missing', # add error column if it's missing
'warn' , # warn, but do not modify