Skip to content

Commit

Permalink
Merge pull request #3 from mikelolasagasti/ga-python310
Browse files Browse the repository at this point in the history
Fix tests for python-3.10 and add 3.10 to CI matrix
  • Loading branch information
ashb committed Nov 22, 2021
2 parents 425745f + a7b186a commit fdb7e44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
os: [ubuntu-latest]
env:
PYTHON: ${{ matrix.python-version }}
Expand Down
4 changes: 3 additions & 1 deletion sphinxarg/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ def parse_parser(parser, data=None, **kwargs):
continue

# Upper case "Positional Arguments" and "Optional Arguments" titles
if action_group.title == 'optional arguments':
# Since python-3.10 'optional arguments' changed to 'options'
# more info: https://github.com/python/cpython/pull/23858
if action_group.title == 'optional arguments' or action_group.title == 'options':
action_group.title = 'Named Arguments'
if action_group.title == 'positional arguments':
action_group.title = 'Positional Arguments'
Expand Down

0 comments on commit fdb7e44

Please sign in to comment.