Re: [PATCH 1/4] Python/iotests: Add type hint for nbd module

2023-10-06 Thread Vladimir Sementsov-Ogievskiy
On 06.10.23 22:52, John Snow wrote: The test bails gracefully if this module isn't installed, but linters need a little help understanding that. It's enough to just declare the type in this case. (Fixes pylint complaining about use of an uninitialized variable because it isn't wise enough to

[PATCH 1/4] Python/iotests: Add type hint for nbd module

2023-10-06 Thread John Snow
The test bails gracefully if this module isn't installed, but linters need a little help understanding that. It's enough to just declare the type in this case. (Fixes pylint complaining about use of an uninitialized variable because it isn't wise enough to understand the notrun call is noreturn.)