|
From: | John Snow |
Subject: | Re: [PATCH 09/11] qapi/gen: Support for switching to another module temporarily |
Date: | Thu, 14 Jan 2021 21:07:57 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 |
On 12/18/20 3:54 PM, Markus Armbruster wrote:
+ @contextmanager + def _temp_module(self, name: str) -> ContextManager[None]:
Doesn't quite typecheck; we want Iterator[None] -- I think we're typing the function that is yet-to-be-decorated -- mypy will handle typing the resulting function.
--js
[Prev in Thread] | Current Thread | [Next in Thread] |