-
Notifications
You must be signed in to change notification settings - Fork 839
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
Add more documentation around contructor parameters #1215
Conversation
Hmm let me check the flake8 failures... the GitHub CI output is not very helpful... to be fair I only ran the tests on Python 3.9 so I will check now on my machine with Python 3.7. |
@filmaj Thanks for improving this!
This could be fine but one reason we've been separating the two generation processes is that, when we want to correct only the documents without updating the API docs with the latest docstrings, merging the two can be an obstacle. Some changes in the latest revision may not be available until cutting a new release. To avoid confusion, we've been updating the API docs when releasing a new version. For the above reason, I still recommend separating the process. If we want to merge them, we may want to add an argument like Does this make sense? |
@seratch yes makes sense, thanks for explaining! |
@filmaj The failure may be an occasional issue on the GitHub Action runtime side. In the past, I've observed segmentation fault and so on that never happen on my local machine. If you rerun the job and it succeeds, it is just fine for now. |
…_client and legacy_client as well as their base classes. In particular focusing on documenting the proxy and ssl parameters (relates to #1214).
Ah I think it is my mistake. The CI runs
If I run |
Codecov Report
@@ Coverage Diff @@
## main #1215 +/- ##
==========================================
- Coverage 86.59% 86.58% -0.01%
==========================================
Files 111 111
Lines 10943 10943
==========================================
- Hits 9476 9475 -1
- Misses 1467 1468 +1
Continue to review full report at Codecov.
|
@seratch sorry one more thing around generating docs during release time you mentioned:
In the maintainer's guide under the releasing steps, it says to only generate the docs using |
@filmaj good catch! We should add it 👍 |
Summary
Parameters for client, async_client and legacy_client as well as their base classes. In particular focusing on documenting the proxy and ssl parameters (relates to #1214).
Preview
web.client
expanded constructor parameter list that now includesssl
,proxy
andheaders
:web.base_client
with instance variables now documented:Similar changes for
web.async_client
, with the addition ofsession
andtrust_env_in_session
parameters:Similar to the above changes also exist in the legacy client, base legacy client, and base async client.
Questions / TODOs
docs/
folder as first I want to make sure the changes make sense.what do you think about having thescripts/docs.sh
script also calling intogenerate_api_docs.sh
? This way a single command generates all the docs in one go.