Cleanup: suppress various pylint warnings
This commit is contained in:
@@ -10,11 +10,6 @@ __all__ = (
|
||||
|
||||
import os
|
||||
|
||||
from collections.abc import (
|
||||
Callable,
|
||||
Iterator,
|
||||
)
|
||||
|
||||
PATHS: tuple[str, ...] = (
|
||||
"build_files",
|
||||
"doc",
|
||||
|
||||
@@ -57,6 +57,7 @@ class _GetchWindows:
|
||||
|
||||
def __init__(self):
|
||||
import msvcrt
|
||||
del msvcrt
|
||||
|
||||
def __call__(self):
|
||||
import msvcrt
|
||||
|
||||
@@ -78,10 +78,9 @@ class _GetchUnix:
|
||||
|
||||
def __init__(self):
|
||||
import tty
|
||||
import sys
|
||||
del tty
|
||||
|
||||
def __call__(self):
|
||||
import sys
|
||||
import tty
|
||||
import termios
|
||||
fd = sys.stdin.fileno()
|
||||
@@ -98,6 +97,7 @@ class _GetchWindows:
|
||||
|
||||
def __init__(self):
|
||||
import msvcrt
|
||||
del msvcrt
|
||||
|
||||
def __call__(self):
|
||||
import msvcrt
|
||||
|
||||
Reference in New Issue
Block a user