Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Only allow snake_case keys in configuration file (#4753) #4754
It looks like the code never worked. Seeing how many places would have to be modified, it feels brittle to try and support this. I suggest that it may be better to just get rid of orig_key and delete the normalization at line 764. We may have to update the docs too.
I couldn't find any documentation where it's stated that the dash-notation is supported. See e.g. https://github.com/python/mypy/blob/10522cf/docs/source/config_file.rst
I added a test case as well, so that it's documented in some sense that it's not a valid syntax.