Skip to content

Commit 794ee55

Browse files
committed
docstrings
1 parent 9434bb5 commit 794ee55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/textual/highlight.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class HighlightTheme:
5454

5555
def guess_language(code: str, path: str) -> str:
5656
"""Guess the language based on the code and path.
57+
The result may be used in the [highlight][textual.highlight.highlight] function.
5758
5859
Args:
5960
code: The code to guess from.
@@ -107,7 +108,7 @@ def highlight(
107108
code: A string to highlight.
108109
language: The language to highlight.
109110
theme: A HighlightTheme class (type not instance).
110-
tab_size: Number of spaces in a tab. Defaults to 8.
111+
tab_size: Number of spaces in a tab.
111112
112113
Returns:
113114
A Content instance which may be used in a widget.

0 commit comments

Comments
 (0)