quantumlib / Cirq

A Python framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits.
Apache License 2.0
4.28k stars 1.02k forks source link

Fix recent type check failure in the CI #6699

Closed pavoljuhas closed 3 months ago

pavoljuhas commented 3 months ago

Fix failure of the mypy (Type check) job in ci.yml. Help mypy detect when optional argument has been provided.

No change in the code function.

pavoljuhas commented 3 months ago

This should prevent CI error such as https://github.com/quantumlib/Cirq/actions/runs/10110319490/job/28372397222

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.82%. Comparing base (7566248) to head (8926a45).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #6699 +/- ## ======================================= Coverage 97.82% 97.82% ======================================= Files 1074 1074 Lines 92187 92187 ======================================= Hits 90186 90186 Misses 2001 2001 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.