There are custom defined type sub-classes (inheriting from TypedDict) as per PEP589. We also have a workflow that uses the Pyright type checker and 0 errors are raised by this.
-
ALM used: GitHub
-
CI system used: GitHub Actions
-
Scanner command used when applicable:
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
with:
args: >
-Dsonar.python.coverage.reportPaths=coverage.xml -
Languages of the repository: Python
-
Error observed:
Assign to “product_example” a value of type “ProductType” instead of “dict” or update its type hint. -
Steps to reproduce: Workflow triggered for each new pull request and each push to that branch
-
Potential workaround: None