-
Notifications
You must be signed in to change notification settings - Fork 137
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
Use async/await in the readme example #383
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update.
Only a minor comments about the links in the README
I think that treq is an important library.
I would love to have it integrated in twisted/twisted
|calver|_ | ||
|coverage|_ | ||
|documentation|_ | ||
|pypi| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this is needed...as otherwise the links are not working
I was testing with https://github.com/twisted/treq/tree/382-async-await-readme?tab=readme-ov-file
see as a playground https://rsted.info.ucl.ac.be/?theme=basic&n=8fd54317743434ab9a96c339c7862241
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like a bug in GitHub... I see the same problem with twisted/twisted
For twisted/towncrier we don't use the substitution ... maybe update treq to just use the image directive
.. image:: https://img.shields.io/pypi/v/towncrier
:alt: PyPI release
:target: https://pypi.org/project/towncrier/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The substitution seems to work, the key is to make it a link with :target:
as you suggested. I guess the link targets .. _calver:
were picked up implicitly by docutils? Or maybe this never worked.
Thank you for the review @adiroiban!
There are certainly parts of it that could live in twisted/twisted:
Some parts that are iffy:
Finally there some parts that I'd never put in twisted/twisted:
|
Thanks again Adi! |
Thanks for the info related to having treq code in twisted/twisted I think merging parts of treq into twisted/twisted is a better approach. |
Fixes #382.