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

Fix matplotlib typing #6290

Merged
merged 4 commits into from
Sep 18, 2023

Conversation

dstrain115
Copy link
Collaborator

matplotlib 3.8.0 was released this week and included typing hints. This fixes the resulting CI breakages.

matplotlib 3.8.0 was released this week and included typing hints.
This fixes the resulting CI breakages.
@CirqBot CirqBot added the size: M 50< lines changed <250 label Sep 16, 2023
@codecov
Copy link

codecov bot commented Sep 16, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (f715527) 97.88% compared to head (4a9de60) 97.88%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6290   +/-   ##
=======================================
  Coverage   97.88%   97.88%           
=======================================
  Files        1104     1104           
  Lines       95830    95841   +11     
=======================================
+ Hits        93805    93818   +13     
+ Misses       2025     2023    -2     
Files Changed Coverage Δ
cirq-core/cirq/devices/named_topologies.py 98.26% <ø> (ø)
examples/two_qubit_gate_compilation.py 97.36% <ø> (-0.07%) ⬇️
cirq-core/cirq/contrib/svg/svg.py 99.14% <100.00%> (+<0.01%) ⬆️
...q-core/cirq/experiments/qubit_characterizations.py 99.63% <100.00%> (-0.01%) ⬇️
cirq-core/cirq/linalg/decompositions.py 96.52% <100.00%> (ø)
cirq-core/cirq/vis/heatmap.py 98.80% <100.00%> (+0.01%) ⬆️
cirq-core/cirq/vis/heatmap_test.py 98.05% <100.00%> (+0.04%) ⬆️
cirq-core/cirq/vis/histogram.py 100.00% <100.00%> (ø)
cirq-core/cirq/vis/state_histogram.py 100.00% <100.00%> (+6.06%) ⬆️
cirq-core/cirq/vis/state_histogram_test.py 100.00% <100.00%> (ø)
... and 1 more

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@tanujkhattar tanujkhattar merged commit b630298 into quantumlib:master Sep 18, 2023
@@ -381,6 +383,7 @@ def plot(
show_plot = not ax
if not ax:
fig, ax = plt.subplots(figsize=(8, 8))
ax = cast(plt.Axes, ax)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does it otherwise think the second return value of plt.sublplots is?

harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
* Fix matplotlib typing

matplotlib 3.8.0 was released this week and included typing hints.
This fixes the resulting CI breakages.

* Fix issues.

* formatting

* Change to seaborn v0_8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: M 50< lines changed <250
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants