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

sphinx/util/nodes.py:335: TypeError with Sphinx 5.3.0 #863

Closed
marxin opened this issue Oct 27, 2022 · 1 comment · Fixed by #865
Closed

sphinx/util/nodes.py:335: TypeError with Sphinx 5.3.0 #863

marxin opened this issue Oct 27, 2022 · 1 comment · Fixed by #865

Comments

@marxin
Copy link
Contributor

marxin commented Oct 27, 2022

Can be seen in openSUSE staging project:
https://build.opensuse.org/build/openSUSE:Factory:Staging:B/standard/x86_64/python-breathe/_log

fails due to:

[   27s] state = <test_renderer.MockState object at 0x7fb651406760>, content = None
[   27s] node = <desc_content: >
[   27s] 
[   27s]     def nested_parse_with_titles(state: Any, content: StringList, node: Node) -> str:
[   27s]         """Version of state.nested_parse() that allows titles and does not require
[   27s]         titles to have the same decoration as the calling document.
[   27s]     
[   27s]         This is useful when the parsed content comes from a completely different
[   27s]         context, such as docstrings.
[   27s]         """
[   27s]         # hack around title style bookkeeping
[   27s] >       surrounding_title_styles = state.memo.title_styles
[   27s] E       AttributeError: 'MockState' object has no attribute 'memo'
[   27s] 
[   27s] /usr/lib/python3.8/site-packages/sphinx/util/nodes.py:335: AttributeError
@marxin
Copy link
Contributor Author

marxin commented Oct 27, 2022

Should be also visible in #864.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant