Commit graph

6 commits

Author SHA1 Message Date
Dima Gerasimov
1f8c719e6d core.common: move DummyExecutor to core.common.utils.concurrent
without backwards compat, unlikely it's been used by anyone
2024-08-15 14:15:23 +03:00
Dima Gerasimov
b390f8b1cb core: cleanup my.core.common.unique_everseen
- move to my.core.utils.itertools
- more robust check for hashable types -- now checks in runtime (since the one based on types purely isn't necessarily sound)
- add more testing
2024-08-15 13:28:45 +03:00
Dima Gerasimov
e7089a0961 my.core.common: move warn_if_empty to my.core.utils.itertools, cleanup and add more tests 2024-08-14 12:56:48 +03:00
Dima Gerasimov
90635c1d67 core.common: move away import related stuff to my.core.utils.imports
moving without backward compatibility, since it's extremely unlikely they are used for any external modules

in fact, unclear if these methods still have much value at all, but keeping for now just in case
2024-08-14 11:28:50 +03:00
Dima Gerasimov
f4214807a3 core.common: move listify to core.utils.itertools, use better typing annotations for it
also some minor refactoring of my.rss
2024-08-14 11:07:11 +03:00
Dima Gerasimov
029fa3ae84 core: cleanup itertool style helpers
- deprecate group_by_key, should use itertool.bucket instead
- move make_dict and ensure_unique to my.core.utils.itertools
2024-08-13 14:10:08 +03:00