diff --git a/cromulant/filter.py b/cromulant/filter.py index 23ccf35..209ed60 100644 --- a/cromulant/filter.py +++ b/cromulant/filter.py @@ -1,14 +1,15 @@ from __future__ import annotations -from PySide6.QtWidgets import QWidget +from PySide6.QtWidgets import QWidget # type: ignore from PySide6.QtGui import QKeyEvent # type: ignore from .window import Window + class Filter: @staticmethod def get_value() -> str: - return Window.filter.text().lower().strip() + return str(Window.filter.text()).lower().strip() @staticmethod def filter(event: QKeyEvent | None = None) -> None: @@ -68,4 +69,4 @@ class Filter: value = Filter.get_value() if value: - Filter.filter() \ No newline at end of file + Filter.filter() diff --git a/cromulant/game.py b/cromulant/game.py index adacd16..16c6d7f 100644 --- a/cromulant/game.py +++ b/cromulant/game.py @@ -8,7 +8,7 @@ from PySide6.QtWidgets import QHBoxLayout # type: ignore from PySide6.QtWidgets import QVBoxLayout from PySide6.QtWidgets import QLabel from PySide6.QtWidgets import QWidget -from PySide6.QtGui import QPixmap +from PySide6.QtGui import QPixmap # type: ignore from PySide6.QtCore import QTimer from wonderwords import RandomSentence # type: ignore