Skip to content

Commit

Permalink
Fix mypy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-fabian committed Jul 10, 2023
1 parent 9188fa7 commit 0802887
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion engine/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -4344,7 +4344,7 @@ def do_set_content_type(self, purpose: int, hints: int) -> None:
LOGGER.debug(
'self._input_purpose = %s (Unknown)',
self._input_purpose)
for hint in list(it_util.InputHints):
for hint in it_util.InputHints:
if self._input_hints & hint:
LOGGER.debug(
'hint: %s %s',
Expand Down
4 changes: 2 additions & 2 deletions engine/tabsqlitedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@ def check_phrase(
if self._is_chinese and phrase in CHINESE_NOCHECK_CHARS:
return
if not dynamic_adjust:
if not self.user_can_define_phrase or not self.is_chinese:
if not self.user_can_define_phrase or not self._is_chinese:
return
tabkeys = self.parse_phrase(phrase)
if not tabkeys:
Expand Down Expand Up @@ -1516,7 +1516,7 @@ def check_phrase(
tabkeys=tabkeys, phrase=phrase, freq=0, user_freq=1,
database='user_db')
else:
if not self.user_can_define_phrase or not self.is_chinese:
if not self.user_can_define_phrase or not self._is_chinese:
return
tabkeys = self.parse_phrase(phrase)
if not tabkeys:
Expand Down

0 comments on commit 0802887

Please sign in to comment.