Skip to content

Commit e264ef8

Browse files
fix: forward reference to wdoc is not possible
Signed-off-by: thiswillbeyourgithub <[email protected]>
1 parent cc74a84 commit e264ef8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wdoc/utils/logger.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from pathlib import Path
1111
from textwrap import dedent
1212

13-
from beartype.typing import Callable, Optional, Type, Union
13+
from beartype.typing import Callable, Optional, Type, Union, no_type_check
1414
from loguru import logger
1515
from platformdirs import user_log_dir
1616
from rich.console import Console
@@ -138,6 +138,7 @@ def set_parse_doc_help_md_as_docstring(
138138
return obj
139139

140140

141+
@no_type_check # forward reference to wdoc is not possible
141142
def debug_exceptions(instance: Optional["wdoc"] = None) -> None:
142143
"open a debugger if --debug is set"
143144

0 commit comments

Comments
 (0)