# HG changeset patch # User John Rouillard # Date 1775707769 14400 # Node ID 13732c1d839231f69b715aff04ccd88559f41086 # Parent 909cf30c01c1932df979192b0cb6102ba532a7cf bug: fix typing for pre 3.9 python. when I added basic typing to logcontext.py I used a spec unsupported in 3.8and earlier. diff -r 909cf30c01c1 -r 13732c1d8392 roundup/logcontext.py --- a/roundup/logcontext.py Wed Apr 08 22:20:06 2026 -0400 +++ b/roundup/logcontext.py Thu Apr 09 00:09:29 2026 -0400 @@ -38,7 +38,7 @@ import logging import os import uuid -from typing import Callable +from typing import Callable, Dict def short_uuid() -> str: @@ -115,7 +115,7 @@ # contactvars.copy_context().items() returns nothing if set has # not been called on a context var. I need the contextvar names # even if they have not been set. -ctx_vars: dict[str, contextvars.ContextVar] = {} +ctx_vars: Dict[str, contextvars.ContextVar] = {} # set up sentinel values that will print a suitable error value # and the context vars they are associated with.