my.core.common: move warn_if_empty to my.core.utils.itertools, cleanup and add more tests

This commit is contained in:
Dima Gerasimov 2024-08-14 12:56:48 +03:00 committed by karlicoss
parent 770dba5506
commit 06084a8787
5 changed files with 112 additions and 115 deletions

View file

@ -1,10 +1,10 @@
# this file only keeps the most common & critical types/utility functions
from .common import get_files, PathIsh, Paths
from .common import Json
from .common import warn_if_empty
from .common import stat, Stats
from .common import datetime_naive, datetime_aware
from .compat import assert_never
from .utils.itertools import warn_if_empty
from .cfg import make_config
from .error import Res, unwrap