Skip to content
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

3.11+ parser fix #223

Merged
merged 2 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.8, 3.9, 3.10,3.12]
python-version: [3.8, 3.9,3.12]

steps:
- uses: actions/checkout@v1
Expand Down
4 changes: 3 additions & 1 deletion libpkpass/commands/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ def __init__(self, cli, iddb=None, pwdb=None):
self.iddb = iddb if iddb else IdentityDB()
self.pwdbcached = pwdb is not None
self.passworddb = pwdb if pwdb else PasswordDB()
cli.register(self, self.name, self.description)
# https://github.com/python/cpython/issues/94331
if self.name not in [action.choices.keys() for action in cli.parser._actions if action.dest == "subparser_name"][0]:
cli.register(self, self.name, self.description)

def register(self, parser):
##################################################################
Expand Down
Loading