Re: [PATCH 09/22] qapi: add match_nofail helper

2021-04-26 Thread John Snow
On 4/25/21 3:54 AM, Markus Armbruster wrote: John Snow writes: Mypy cannot generally understand that these regex functions cannot possibly fail. Add a _nofail helper that clarifies this for mypy. Convention wants a blank line here. Tooling failure. stg pop -a while stg push; and stg edit

Re: [PATCH 09/22] qapi: add match_nofail helper

2021-04-25 Thread Markus Armbruster
John Snow writes: > Mypy cannot generally understand that these regex functions cannot > possibly fail. Add a _nofail helper that clarifies this for mypy. Convention wants a blank line here. > Signed-off-by: John Snow > --- > scripts/qapi/common.py | 8 +++- > scripts/qapi/main.py | 6

[PATCH 09/22] qapi: add match_nofail helper

2021-04-21 Thread John Snow
Mypy cannot generally understand that these regex functions cannot possibly fail. Add a _nofail helper that clarifies this for mypy. Signed-off-by: John Snow --- scripts/qapi/common.py | 8 +++- scripts/qapi/main.py | 6 ++ scripts/qapi/parser.py | 13 +++-- 3 files changed, 1