Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions geemap/colormaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# This module contains extra features of the geemap package. #
# The geemap community will maintain the extra features. #
# *******************************************************************************#
from typing import Any

import box
import matplotlib as mpl
Expand Down Expand Up @@ -71,7 +72,7 @@

def get_palette(
cmap_name: str | None = None, n_class: int | None = None, hashtag: bool = False
) -> list[str]:
) -> Any:
"""Returns a palette of hex colors from a matplotlib colormap.

WARNING: This function is inconsistent with how it handles hashes in the
Expand All @@ -85,7 +86,6 @@ def get_palette(
n_class: The number of colors. Defaults to None.
hashtag: Whether to return a list of hex colors. Defaults to False.
"""

if cmap_name in ["ndvi", "ndwi", "dem", "dw", "esri_lulc"]:
colors = _palette_dict[cmap_name]
else:
Expand Down