diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c43d9430be..9d25c00b3c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-toml - id: check-yaml @@ -12,7 +12,7 @@ repos: args: ["--maxkb=500"] - repo: https://github.com/psf/black - rev: 24.8.0 + rev: 24.10.0 hooks: - id: black-jupyter diff --git a/leafmap/deckgl.py b/leafmap/deckgl.py index 75629b1783..f2177ec65e 100644 --- a/leafmap/deckgl.py +++ b/leafmap/deckgl.py @@ -153,7 +153,7 @@ def add_gdf( kwargs["get_fill_color"] = [0, 0, 255, 128] layer = SolidPolygonLayer.from_geopandas(gdf, **kwargs) - self.layers = self.layers + [layer] + self.layers = self.layers + (layer,) if zoom_to_layer: try: @@ -270,7 +270,7 @@ def add_layer( PolygonLayer, SolidPolygonLayer, ]: - self.layers = self.layers + [layer] + self.layers = self.layers + (layer,) if zoom_to_layer: from lonboard._viewport import compute_view