Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1258254

Browse files
authored
Merge pull request#295 from matplotlib/update-actions
Update actions to latest versions.
2 parentsced5d9d +5f1129e commit1258254

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

‎.github/workflows/docs.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
name:Build & Upload Artifact
1818
runs-on:ubuntu-latest
1919
steps:
20-
-uses:actions/checkout@v3
20+
-uses:actions/checkout@v4
2121

22-
-uses:actions/setup-python@v3
22+
-uses:actions/setup-python@v5
2323
with:
2424
python-version:"3.10"
2525

@@ -38,7 +38,7 @@ jobs:
3838
working-directory:./docs
3939

4040
-name:Upload artifact
41-
uses:actions/upload-artifact@v3
41+
uses:actions/upload-artifact@v4
4242
with:
4343
name:docs
4444
path:docs/_build
@@ -49,7 +49,7 @@ jobs:
4949
needs:build-docs
5050
if:contains(github.ref, 'tags')
5151
steps:
52-
-uses:actions/checkout@v3
52+
-uses:actions/checkout@v4
5353
-uses:actions/download-artifact@v4.1.7
5454
with:
5555
name:docs

‎.github/workflows/test_and_deploy.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
python-version:['3.10', '3.11', '3.12']
2828

2929
steps:
30-
-uses:actions/checkout@v3
30+
-uses:actions/checkout@v4
3131

3232
-name:Set up Python ${{ matrix.python-version }}
33-
uses:actions/setup-python@v3
33+
uses:actions/setup-python@v5
3434
with:
3535
python-version:${{ matrix.python-version }}
3636

@@ -54,7 +54,7 @@ jobs:
5454
run:python -m tox
5555

5656
-name:Upload pytest test results
57-
uses:actions/upload-artifact@v3
57+
uses:actions/upload-artifact@v4
5858
with:
5959
name:pytest-results-${{ matrix.platform }} py${{ matrix.python-version }}
6060
path:reports/
@@ -83,9 +83,9 @@ jobs:
8383
permissions:
8484
id-token:write
8585
steps:
86-
-uses:actions/checkout@v2
86+
-uses:actions/checkout@v4
8787
-name:Set up Python
88-
uses:actions/setup-python@v2
88+
uses:actions/setup-python@v5
8989
with:
9090
python-version:"3.x"
9191
-name:Install build

‎src/napari_matplotlib/histogram.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
def_get_bins(
2929
data:npt.NDArray[Any],
3030
num_bins:int=100,
31-
)->npt.NDArray[Any]:
31+
)->npt.NDArray[np.floating]:
3232
"""Create evenly spaced bins with a given interval.
3333
3434
Parameters
@@ -161,13 +161,13 @@ def draw(self) -> None:
161161
fori,cinenumerate("rgb"):
162162
self.axes.hist(
163163
data[...,i].ravel(),
164-
bins=bins.tolist(),
164+
bins=bins.tolist(),# type: ignore[arg-type]
165165
label=c,
166166
histtype="step",
167167
color=_COLORS[c],
168168
)
169169
else:
170-
self.axes.hist(data.ravel(),bins=bins.tolist(),label=layer.name)
170+
self.axes.hist(data.ravel(),bins=bins.tolist(),label=layer.name)# type: ignore[arg-type]
171171

172172
self._contrast_lines= [
173173
self.axes.axvline(lim,color="white")
@@ -297,7 +297,7 @@ def draw(self) -> None:
297297

298298
bins=_get_bins(data)
299299

300-
_,bins,patches=self.axes.hist(data,bins=bins.tolist())
300+
_,bins,patches=self.axes.hist(data,bins=bins.tolist())# type: ignore[arg-type]
301301
patches=cast(BarContainer,patches)
302302

303303
# recolor the histogram plot

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp