python/mypy#2153
basically, the following is valid Python code:
>>> itemgetter(Ellipsis)({Ellipsis: -1})
-1
in my case I got the error message with a more mundane string key, thus yielding this error:
No overload variant of "itemgetter" matches argument types [builtins.str]