8000 Add typing to test_plot.py by Illviljan · Pull Request #8889 · pydata/xarray · GitHub
[go: up one dir, main page]

Skip to content

Add typing to test_plot.py #8889

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

Merged
merged 20 commits into from
Apr 5, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update test_plot.py
  • Loading branch information
Illviljan committed Mar 29, 2024
commit d7e79bb5f3d7fa4545d018f5d9a2aa3f6585612b
4 changes: 2 additions & 2 deletions xarray/tests/test_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from collections.abc import Hashable
from copy import copy
from datetime import datetime
from typing import Any, Callable, Literal
from typing import Any, Callable, Literal, Generator

import numpy as np
import pandas as pd
Expand Down Expand Up @@ -150,7 +150,7 @@ def get_colorbar_label(colorbar) -> str:
@requires_matplotlib
class PlotTestCase:
@pytest.fixture(autouse=True)
def setup(self) -> None:
def setup(self) -> Generator:
yield
# Remove all matplotlib figures
plt.close("all")
Expand Down
0