Re: [PATCH 03/12] qapi/main: handle theoretical None-return from re.match()

2020-12-16 Thread John Snow
On 12/16/20 3:23 AM, Markus Armbruster wrote: John Snow writes: Mypy cannot understand that this match can never be None, so help it along. Signed-off-by: John Snow --- scripts/qapi/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/qapi/main.py b/script

Re: [PATCH 03/12] qapi/main: handle theoretical None-return from re.match()

2020-12-16 Thread Markus Armbruster
John Snow writes: > Mypy cannot understand that this match can never be None, so help it > along. > > Signed-off-by: John Snow > --- > scripts/qapi/main.py | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/scripts/qapi/main.py b/scripts/qapi/main.py > index 42517210b805

[PATCH 03/12] qapi/main: handle theoretical None-return from re.match()

2020-12-14 Thread John Snow
Mypy cannot understand that this match can never be None, so help it along. Signed-off-by: John Snow --- scripts/qapi/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/qapi/main.py b/scripts/qapi/main.py index 42517210b805..271d9e84da94 100644 --- a/scripts/qa