core.pandas: add check for 'error' column + add empty one by default

This commit is contained in:
Dima Gerasimov 2020-12-17 04:47:05 +00:00 committed by karlicoss
parent 3a1e21635a
commit df9a7f7390
7 changed files with 82 additions and 30 deletions

View file

@ -47,3 +47,16 @@ def _get_dal(cfg, module_name: str):
from importlib import import_module
return import_module(f'my.config.repos.{module_name}.dal')
import sys
from typing import TYPE_CHECKING
if sys.version_info[:2] >= (3, 8):
from typing import Literal
else:
if TYPE_CHECKING:
from typing_extensions import Literal
else:
from typing import Union
# erm.. I guess as long as it's not crashing, whatever...
Literal = Union