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

Commit008e327

Browse files
authored
Merge pull request#28138 from meeseeksmachine/auto-backport-of-pr-28068-on-v3.9.x
Backport PR#28068 on branch v3.9.x ([TYP] Add possible type hint to `colors` argument in `LinearSegmentedColormap.from_list`)
2 parentsb8416d6 +db8abc2 commit008e327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/matplotlib/colors.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class LinearSegmentedColormap(Colormap):
124124
defset_gamma(self,gamma:float)->None: ...
125125
@staticmethod
126126
deffrom_list(
127-
name:str,colors:ArrayLike,N:int= ...,gamma:float= ...
127+
name:str,colors:ArrayLike|Sequence[tuple[float,ColorType]],N:int= ...,gamma:float= ...
128128
)->LinearSegmentedColormap: ...
129129
defresampled(self,lutsize:int)->LinearSegmentedColormap: ...
130130
defreversed(self,name:str|None= ...)->LinearSegmentedColormap: ...

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp