mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
signature
This commit is contained in:
@@ -52,7 +52,7 @@ class HighlightTheme:
|
||||
}
|
||||
|
||||
|
||||
def guess_language(code: str, path: str) -> str:
|
||||
def guess_language(code: str, path: str | None) -> str:
|
||||
"""Guess the language based on the code and path.
|
||||
The result may be used in the [highlight][textual.highlight.highlight] function.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user