Skip to content

chart: Fix various lint issues.#2679

Open
naschmitz wants to merge 1 commit intogee-community:masterfrom
naschmitz:lint-fixit
Open

chart: Fix various lint issues.#2679
naschmitz wants to merge 1 commit intogee-community:masterfrom
naschmitz:lint-fixit

Conversation

@naschmitz
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread geemap/chart.py
) # pytype: disable=wrong-arg-types
if "labels" in kwargs:
raise Exception("Please remove labels in kwargs and try again.")
raise ValueError("Please remove labels in kwargs and try again.")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a behavior change. I'm okay with that if you are.

Comment thread geemap/chart.py
def get_data(
self, x_properties: list[str] | dict[str, str]
) -> tuple[list[Any], list[Any]]:
def get_data(self) -> tuple[list[Any], list[Any]]:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes the API. While it seems right to do in the long run, I think we should hold off doing that during the initial linting phase.

Comment thread geemap/chart.py
"""
x_data = list(self.df[x_property])
y_data = [self.df[x] for x in new_column_names]
def get_data(self) -> tuple[list[Any], list[Any]]:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another API change

@schwehr schwehr assigned naschmitz and unassigned schwehr Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants