yellow2
is mostly fine in this specific use case, but unfortunately it can’t include the sep
argument.
For callables as arguments, keyword arguments aren’t all that useful, but for closures they are.
I guess it works as intended in Pylance. (Type aliases aren’t expanded too).
It’s just sad I can’t type hint everything. (Without losing helpful information).