On July 14, 2025 thus sayeth Yannic Moog: > To make it work with python 3.5 and 3.6, need type hints from the > typing module. > > Reported-by: Tim Harvey <thar...@gateworks.com> > Fixes: 21bc3433a43d ("binman: rework dropping absent entries from packaged > image") > Signed-off-by: Yannic Moog <y.m...@phytec.de> > --- > Changes in v2: > - drop newline changes > - Link to v1: > https://lore.kernel.org/r/20250711-binman-typing-fix-v1-1-66ab07501...@phytec.de > --- > tools/binman/etype/cbfs.py | 3 ++- > tools/binman/etype/mkimage.py | 3 ++- > tools/binman/etype/section.py | 3 ++- > 3 files changed, 6 insertions(+), 3 deletions(-) > > diff --git a/tools/binman/etype/cbfs.py b/tools/binman/etype/cbfs.py > index > 5879f377231bf94697bea97c3cfc3a2515665b8f..c5e77f3a0df22ff768aa7254e4dd9ecbe6f81684 > 100644 > --- a/tools/binman/etype/cbfs.py > +++ b/tools/binman/etype/cbfs.py > @@ -6,6 +6,7 @@ > # > > from collections import OrderedDict > +from typing import Dict
It's been a while from my Python days so I'm still trying to understand what's going on, but my understanding is the 'typing' module is considered deprecated after Python 3.9 with PEP 589[0] It seems like we're asked to use: from __future__ import annotations ~Bryan [0] https://peps.python.org/pep-0585/