A falsey key was ignored
all_unique applied the key with map(key, iterable) if key else iterable. A callable whose __bool__ returns False was therefore skipped and the function compared items without the key: for ['A', 'B', 'C', 'b'] with a key calling casefold() it returned True.
A key is None check
The loop now picks iterable if key is None else map(key, iterable), like the other functions with a key parameter in more.py. A test with a CaseFold class, which is falsey and calls casefold(), expects False and fails without the fix.