Skip to content

Commit

Permalink
Fix mypy issues which are due to typed Altair release
Browse files Browse the repository at this point in the history
  • Loading branch information
binste committed Dec 8, 2023
1 parent 3871b31 commit 4ba7e87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions altair_tiles/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ def add_tiles(
standalone=False,
)

final_chart = tiles + chart
final_chart = tiles + chart # type: ignore # noqa: PGH003
if attribution:
final_chart = add_attribution(
final_chart = add_attribution( # type: ignore[assignment]
chart=final_chart, provider=provider, attribution=attribution
)
return final_chart
Expand All @@ -73,7 +73,7 @@ def create_tiles_chart(
provider: Union[str, TileProvider] = "OpenStreetMap.Mapnik",
zoom: Optional[int] = None,
attribution: Union[str, bool] = True,
standalone: bool = True,
standalone: Union[bool, alt.Projection] = True,
) -> Union[alt.LayerChart, alt.Chart]:
"""Creates an Altair chart with tiles.
Expand Down Expand Up @@ -376,7 +376,7 @@ def _transform_filter_url_x_y_bounds(
y_max: Union[str, int],
expr_url_x: str,
expr_url_y: str,
) -> str:
) -> alt.Chart:
chart = chart.transform_filter(
# Lower bounds
expr_url_x
Expand Down

0 comments on commit 4ba7e87

Please sign in to comment.