Skip to content

Commit 75bb733

Browse files
committed
Don't document TextArea language and theme twice
Also don't confuse type checks with an incompatible type declaration for theme.
1 parent c8b388c commit 75bb733

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/textual/widgets/_text_area.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,8 @@ def __init__(
305305
corresponding `TextAreaTheme` object."""
306306

307307
self.language = language
308-
"""The language of the `TextArea`."""
309308

310-
self.theme: str | None = theme
311-
"""The name of the theme of the `TextArea` as set by the user."""
309+
self.theme = theme
312310

313311
@staticmethod
314312
def _get_builtin_highlight_query(language_name: str) -> str:

0 commit comments

Comments
 (0)