Comments (5)
Here's a test case replicating the issue.
Tested on:
Sphinx==1.8.1
sphinxcontrib-trio==1.0.1
from sphinxcontrib-trio.
Just ran into this issue myself, it looks like this is not fixed. Is this project still getting maintained? The issue appears to be over 16 months old =/
from sphinxcontrib-trio.
@DevilXD the project is still maintained and in use, but it's on a volunteer, best effort kind of basis, so issues only get fixed if someone is motivated to do it. If this is causing problems for you, then maybe you're the right volunteer to figure out what's going on and fix it :-)
from sphinxcontrib-trio.
@njsmith Unfortunately I have 0 clue what is going on, or how to debug this even - my breakpoints doesn't seem to work. This is breaking my documentation and I could at least try fixing it, but I don't think I have enough knowledge of sphinx internals to be able to do so =/
Unless you're willing to explain or point me in the right direction with this, I might just look for an alternative (if there is one), and if not, do what the discord.py project did - add a note to each function stating when it's a coroutine, and when it isn't.
from sphinxcontrib-trio.
After some tinkering around by modifying the installed library directly and adding print statements (cos doing proper debugging is too hard apparently, from the previous comment), it looks like the issue is in the 358 line:
obj = self.parent.__dict__.get(self.object_name)
Doing this doesn't resolve the MRO entires in any way, and just does a lookup directly on the class, so every inherited method just returns None
at that point, and since that has no __wrapped__
attribute on it, trying to sniff options does nothing later on as well. Not sure how to solve this considering that the comment right above that line states that getattr
cannot be used (although it would properly resolve the MRO entires), but I'll think about it and make a PR if possible.
from sphinxcontrib-trio.
Related Issues (20)
- autodoc_member_order ignored HOT 15
- Something wrong with our sphinx compatibility matrix after #14... HOT 4
- `PyClassmember` is deprecated since Sphinx 2.1 and will be removed in Sphinx 4.0 HOT 1
- 'NoneType' object has no attribute '__dict__'
- Remove dependency on contextlib2 HOT 2
- autodetect :for: false positive HOT 2
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- autodoc_member_order="bysource" still not working?
- Fix compatibility with sphinx 2.1 HOT 8
- test_end_to_end fails HOT 2
- 1.1.2: is sphinxcontrib-trio not sphinx 4.0.2 ready? HOT 8
- Using both :async-with: and :async-for: should raise a warning
- Allow to mark function from the docstring when using autodoc HOT 1
- AttributeError that only occurs with trio HOT 2
- 1.1.2: pytest fails in one unit
- Dependabot can't resolve your Python dependency files
- Dependabot can't resolve your Python dependency files
- Breaks on Sphinx 1.7.0 HOT 3
- Automatic annotations break with autosummary HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sphinxcontrib-trio.