Skip to content

Commit

Permalink
Pylint false positives
Browse files Browse the repository at this point in the history
  • Loading branch information
avylove committed Mar 6, 2024
1 parent 05bb167 commit b432f7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions blessed/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,7 @@ def formatter(self, value):
inadvertently returning another terminal capability.
"""
formatters = split_compound(value)
# Pylint sometimes thinks formatters isn't a list # pylint: disable=not-an-iterable
if all((fmt in COLORS or fmt in COMPOUNDABLES) for fmt in formatters):
return getattr(self, value)

Expand Down
1 change: 1 addition & 0 deletions blessed/terminal.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from typing import IO, Any, List, Tuple, Union, Optional, OrderedDict, SupportsIndex, ContextManager

# local
# The type hints do have circular imports, but the code doesn't # pylint: disable=cyclic-import
from .keyboard import Keystroke
from .sequences import Termcap
from .formatters import (FormattingString,
Expand Down

0 comments on commit b432f7c

Please sign in to comment.