mypy indexing pd.DataFrame with an Enum raises no overload variant error
mypy indexing pd.DataFrame with an Enum raises no overload variant error Question: The issue Mypy gives no overload variant of __getitem__ of "DataFrame" matches argument type "MyEnum" error. In this case the argument type is an Enum but the issue would occur for any other custom type. Here is the signature of __get_item__ below. def …