Mercurial > p > roundup > code
changeset 8564:13732c1d8392
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.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 09 Apr 2026 00:09:29 -0400 |
| parents | 909cf30c01c1 |
| children | 792eb77554fb |
| files | roundup/logcontext.py |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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.
