Skip to content

Commit

Permalink
Fix union type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
sufyanAbbasi authored and naschmitz committed Dec 18, 2024
1 parent 9fe8e07 commit 73b02b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geemap/map_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def _check_if_allowed(
)
return True

def _normalize_color_to_hex(self, color: str | tuple) -> str:
def _normalize_color_to_hex(self, color: Union[str, tuple]) -> str:
"""Converts a list of RGB colors to hex."""
if isinstance(color, tuple):
try:
Expand Down

0 comments on commit 73b02b3

Please sign in to comment.