From 36a54466cf29666e492b48c4308d159d5cfcb11a Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 22 Sep 2022 09:40:39 -0400 Subject: [PATCH] djbdns/io.py: add a comment about an early return. --- djbdns/io.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/djbdns/io.py b/djbdns/io.py index 7af36a0..a3e6e43 100644 --- a/djbdns/io.py +++ b/djbdns/io.py @@ -42,6 +42,8 @@ def parse_logfile(file : TextIO): bufsize=0) as tai: if not tai.stdin or not tai.stdout: + # Mypy tells me that this can happen, based on the type + # annotations in the standard library I guess? return for line in file: -- 2.44.2