textual
textual copied to clipboard
fix: pylint no-name-in-module for widgets
For #1107, we can import Widgets under if typing.TYPE_CHECKING: to avoid no-name-in-module errors from pylint when importing from textual.widgets. I also updated and moved the comment to reflect the additional step needed for new built-in Widgets.