Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DeprecationWarning [INFO] while generating docs #167

Open
harishmohanraj opened this issue Mar 22, 2023 · 0 comments
Open

Fix DeprecationWarning [INFO] while generating docs #167

harishmohanraj opened this issue Mar 22, 2023 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@harishmohanraj
Copy link
Collaborator

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 harishmohanraj self-assigned this Mar 22, 2023
@harishmohanraj harishmohanraj added the documentation Improvements or additions to documentation label Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant