We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d497bc7 commit a0f0ec5Copy full SHA for a0f0ec5
src/textual/highlight.py
@@ -52,7 +52,7 @@ class HighlightTheme:
52
}
53
54
55
-def guess_language(code: str, path: str) -> str:
+def guess_language(code: str, path: str | None) -> str:
56
"""Guess the language based on the code and path.
57
The result may be used in the [highlight][textual.highlight.highlight] function.
58
0 commit comments