Skip to content

Commit 72789bb

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1ce49d2 commit 72789bb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

branca/colormap.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import json
1010
import math
1111
import os
12-
from typing import Dict, List, Optional, Sequence, Tuple, Union, Callable
12+
from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union
1313

1414
from jinja2 import Template
1515

@@ -175,8 +175,9 @@ def rgba_bytes_tuple(self, x: float) -> TypeRGBAInts:
175175
"""Provides the color corresponding to value `x` in the
176176
form of a tuple (R,G,B,A) with int values between 0 and 255.
177177
"""
178-
return tuple(_color_normalized_float_to_byte_int(u)
179-
for u in self.rgba_floats_tuple(x)) # type: ignore
178+
return tuple(
179+
_color_normalized_float_to_byte_int(u) for u in self.rgba_floats_tuple(x)
180+
) # type: ignore
180181

181182
def rgb_bytes_tuple(self, x: float) -> TypeRGBInts:
182183
"""Provides the color corresponding to value `x` in the

0 commit comments

Comments
 (0)