darglint fix

This commit is contained in:
Elijah 2024-10-31 16:42:34 +00:00
parent cbe5a8f9d8
commit c5595e9dfd

View File

@ -532,7 +532,11 @@ class CodeBlock(Component, MarkdownComponentMap):
@classmethod
def _get_language_registration_hook(cls) -> str:
"""Get the hook to register the language."""
"""Get the hook to register the language.
Returns:
The hook to register the language.
"""
return f"""
if ({str(_LANGUAGE)}) {{
(async () => {{