Enable checks for unused noqa

This commit is contained in:
Kovid Goyal
2023-01-09 17:28:35 +05:30
parent 69255f7525
commit 836b652f4d
7 changed files with 187 additions and 186 deletions

View File

@@ -135,7 +135,7 @@ class IssueData:
self.tty_name = format_tty_name(os.ctermid())
except OSError:
self.tty_name = '(none)'
self.l = self.tty_name # noqa
self.l = self.tty_name
self.baud_rate = 0
if sys.stdin.isatty():
with suppress(OSError):