from typing import Any, Callable, Dict, Optional MakeTokenType = Callable[[Optional[Dict[str, Any]]], str]