Skip to content
Open
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/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
python: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.15']
env:
VIRTUAL_ENV: .venv
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
python: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.15']
env:
VIRTUAL_ENV: .venv
steps:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Caches:
__pycache__/
13 changes: 2 additions & 11 deletions hid_parser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,20 +782,11 @@ def _append_items(
)
self._append_item(offset_list, pool, report_id, item)
else:
if len(usages) != report_count:
error_str = f'Expecting {report_count} usages but got {len(usages)}'
warnings.warn(HIDComplianceWarning(error_str), stacklevel=2)
if len(usages) > report_count:
report_count = len(usages)
else:
missing_usage_count = report_count - len(usages)
usages += [] * missing_usage_count

for usage in usages:
for r in range(0, report_count):
item = VariableItem(
offset=offset_list[report_id],
size=report_size,
usage=usage,
usage=usages[min(r, len(usages) - 1)],
flags=flags,
**data,
)
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def mypy(session):
session.run('mypy', '-p', 'hid_parser')


@nox.session(python=['3.9', '3.10', '3.11', '3.12', '3.13'])
@nox.session(python=['3.9', '3.10', '3.11', '3.12', '3.13', '3.14', '3.15'])
def test(session):
htmlcov_output = os.path.join(session.virtualenv.location, 'htmlcov')
xmlcov_output = os.path.join(session.virtualenv.location, f'coverage-{session.python}.xml')
Expand Down