Add type hints to `logging/context.py`.