my.twitter.android: refactor into a proper module

for now only extracting bookmarks, will use it for some time and see how it goes
This commit is contained in:
karlicoss 2023-12-24 00:06:29 +00:00
parent a4a7bc41b9
commit 51209c547e
3 changed files with 96 additions and 26 deletions

View file

@ -686,6 +686,7 @@ def unique_everseen(
if key is None:
# todo check key return type as well? but it's more likely to be hashable
if os.environ.get('HPI_CHECK_UNIQUE_EVERSEEN') is not None:
# TODO return better error here, e.g. if there is no return type it crashes
_check_all_hashable(fun)
return more_itertools.unique_everseen(iterable=iterable, key=key)