Skip to content

Instantly share code, notes, and snippets.

@mypy-play
Created January 16, 2026 01:45
Show Gist options
  • Select an option

  • Save mypy-play/efa01b423c6f56db2042f3dbce0d01df to your computer and use it in GitHub Desktop.

Select an option

Save mypy-play/efa01b423c6f56db2042f3dbce0d01df to your computer and use it in GitHub Desktop.
Shared via mypy Playground
from logging.config import _FormatterConfigurationTypedDict
# This should error - "()" is not a valid key
formatter_config: _FormatterConfigurationTypedDict = {
"()": "logging.Formatter",
"format": "%(message)s",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment