Skip to content

Commit 74bc2eb

Browse files
committed
Fix Union formatting
1 parent 6c27315 commit 74bc2eb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
setup(
2020
name="stylecloud",
2121
packages=["stylecloud"], # this must be the same as the name above
22-
version="0.5.0",
22+
version="0.5.1",
2323
description="Python package + CLI to generate stylistic wordclouds, "
2424
"including gradients and icon shapes!",
2525
long_description=long_description,

stylecloud/stylecloud.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,12 @@ def gen_stylecloud(
169169
size: int = 512,
170170
icon_name: str = "fas fa-flag",
171171
palette: str = "cartocolors.qualitative.Bold_5",
172-
colors: Union(str, List[str]) = None,
172+
colors: Union[str, List[str]] = None,
173173
background_color: str = "white",
174174
max_font_size: int = 200,
175175
max_words: int = 2000,
176176
stopwords: bool = True,
177-
custom_stopwords: Union(List[str], set) = STOPWORDS,
177+
custom_stopwords: Union[List[str], set] = STOPWORDS,
178178
add_stopwords: bool = False,
179179
icon_dir: str = ".temp",
180180
output_name: str = "stylecloud.png",

0 commit comments

Comments
 (0)