Add Product to the ZGW API registration #11260
code_quality.yml
on: pull_request
Check import sorting
57s
Check code formatting with black
55s
Code style (flake8)
35s
Check for model changes not present in the migrations or default_admin_index fixture
1m 21s
Lint dependencies
7s
Type checking (Pyright)
32s
Annotations
2 errors and 1 warning
Type checking (Pyright):
src/openforms/registrations/contrib/zgw_apis/api/views.py#L116
Expression of type "builtins.list[openforms.contrib.zgw.clients.catalogi.Product]" is incompatible with declared type "builtins.list[openforms.registrations.contrib.zgw_apis.api.views.Product]"
"builtins.list" is incompatible with "builtins.list"
Type parameter "_T@list" is invariant, but "openforms.contrib.zgw.clients.catalogi.Product" is not the same as "openforms.registrations.contrib.zgw_apis.api.views.Product"
Consider switching from "list" to "Sequence" which is covariant (reportAssignmentType)
|
Type checking (Pyright)
1 error
|
Type checking (Pyright)
The following actions use a deprecated Node.js version and will be forced to run on node20: jakebailey/pyright-action@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|