Skip to content

Commit

Permalink
Mark ContentTab._PREFIX as being a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
davep committed Dec 7, 2023
1 parent fc5d611 commit 1e472d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/textual/widgets/_tabbed_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from rich.repr import Result
from rich.text import Text, TextType
from typing_extensions import Final

from ..app import ComposeResult
from ..await_complete import AwaitComplete
Expand All @@ -26,7 +27,7 @@
class ContentTab(Tab):
"""A Tab with an associated content id."""

_PREFIX = "--content-tab-"
_PREFIX: Final[str] = "--content-tab-"
"""The prefix given to the tab IDs."""

@classmethod
Expand Down

0 comments on commit 1e472d5

Please sign in to comment.