Skip to content

Commit 26d57b2

Browse files
committed
fix type annotation on Lexer
it can't be None
1 parent 0e6b8cc commit 26d57b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nbconvert/filters/markdown_mistune.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def __init__(
312312
def block_code(self, code: str, info: Optional[str] = None) -> str:
313313
"""Handle block code."""
314314
lang: Optional[str] = ""
315-
lexer: Optional[Lexer] = None
315+
lexer: Lexer
316316

317317
if info:
318318
if info.startswith("mermaid"):

0 commit comments

Comments
 (0)