Skip to content

session: fix options docstring #5176

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

Merged
merged 3 commits into from
Feb 17, 2023

Conversation

bastimeyer
Copy link
Member

  • Fix default options
    • Reorder according to cli argparse mapping
    • Add missing defaults (except deprecated keys)
    • Fix incorrect defaults
  • Fix set_option() docstring
    • Replace rst table with list-table from myst-parser extension
    • Reformat table and add key, type, default and description columns
    • Add all missing keys, including deprecated keys
    • Reorder keys according to default keys
    • Fix types and update descriptions
  • Add docstring tests

#5173 (comment)

First commit is only meant for having some kind of public interface on the Options class for iterating its keys (as used in the added session options documentation tests), or for getting/setting values with the bracket syntax, which could be useful in plugins instead of using the {g,s}et_option method.

Third commit fixes the delimiter of the http-query-params string input, which was implemented incorrectly, but documented correctly.

- Fix default options
  - Reorder according to cli argparse mapping
  - Add missing defaults (except deprecated keys)
  - Fix incorrect defaults
- Fix set_option() docstring
  - Replace rst table with list-table from myst-parser extension
  - Reformat table and add key, type, default and description columns
  - Add all missing keys, including deprecated keys
  - Reorder keys according to default keys
  - Fix types and update descriptions
- Add docstring tests
@bastimeyer bastimeyer force-pushed the session/fix-option-docs branch from 507ba94 to 9c54279 Compare February 17, 2023 16:45
@gravyboat gravyboat merged commit 74e0f7a into streamlink:master Feb 17, 2023
@bastimeyer bastimeyer deleted the session/fix-option-docs branch February 17, 2023 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants