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:
parent
3919c10eec
commit
c60454e4c9
3 changed files with 96 additions and 26 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue