Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 21, 2025
1 parent 821bee4 commit 7b5b1bf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions branca/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ def __init__(
elif template_name is not None:
self._template = ENV.get_template(template_name)




def __getstate__(self) -> dict:
"""Modify object state when pickling the object.
Expand Down Expand Up @@ -157,7 +154,7 @@ def add_child(
# replace the proposed child with a clone of the proposed child because
# add_child 1) overwrites any existing value in the child._parent field
# and 2) does not do anything to remove the child from the list of children of the prior parent
# leading to inconsistency and to problems like the fact that adding the same icon to a map twice fails, as
# leading to inconsistency and to problems like the fact that adding the same icon to a map twice fails, as
# documented in https://github.com/python-visualization/folium/issues/1885
# Creating a clone leads to internally consistent behavior if the
# child already has a parent, although existing code of the form:
Expand All @@ -169,7 +166,6 @@ def add_child(
if child._parent is not None:
child = child.clone()


if name is None:
name = child.get_name()
if index is None:
Expand Down

0 comments on commit 7b5b1bf

Please sign in to comment.