nbdev-mkdocs icon indicating copy to clipboard operation
nbdev-mkdocs copied to clipboard

Fix DeprecationWarning [INFO] while generating docs

Open harishmohanraj opened this issue 2 years ago • 0 comments

INFO - DeprecationWarning: invalid escape sequence '\s' File "/Users/harishm/.pyenv/versions/3.10.4/lib/python3.10/site-packages/griffe/agents/visitor.py", line 174, in get_module top_node = compile(self.code, mode="exec", filename=str(self.filepath), flags=ast.PyCF_ONLY_AST, optimize=1) File "nbdev_mkdocs/docstring.py", line 94, in code = [x[0] for x in re.findall("\s*python((\n|.|\\n])+)", s)] INFO - DeprecationWarning: invalid escape sequence '\w' File "/Users/harishm/.pyenv/versions/3.10.4/lib/python3.10/site-packages/griffe/agents/visitor.py", line 174, in get_module top_node = compile(self.code, mode="exec", filename=str(self.filepath), flags=ast.PyCF_ONLY_AST, optimize=1) File "nbdev_mkdocs/docstring.py", line 124, in [x[9:-1] for x in re.findall("{fill in \w+}", example)] INFO - DeprecationWarning: invalid escape sequence '{' File "/Users/harishm/.pyenv/versions/3.10.4/lib/python3.10/site-packages/griffe/agents/visitor.py", line 174, in get_module top_node = compile(self.code, mode="exec", filename=str(self.filepath), flags=ast.PyCF_ONLY_AST, optimize=1) File "nbdev_mkdocs/mkdocs.py", line 116, in keys = [s[1:-1] for s in re.findall("{.*?}", _mkdocs_template)] INFO - Documentation built in 1.18 seconds

harishmohanraj avatar Mar 22 '23 13:03 harishmohanraj