Skip to content

Commit

Permalink
Fixed the typing to use built-in generics in Python 3.9+
Browse files Browse the repository at this point in the history
  • Loading branch information
Navxihziq committed Jun 18, 2024
1 parent 5ab74d5 commit 7e61dbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions streamlit_folium/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import re
import warnings
from textwrap import dedent
from typing import Iterable, List
from typing import Iterable

import branca
import folium
Expand Down Expand Up @@ -380,8 +380,8 @@ def walk(fig):
for child in fig._children.values():
yield from walk(child)

css_links: List[str] = []
js_links: List[str] = []
css_links: list[str] = []
js_links: list[str] = []

for elem in walk(folium_map):
if isinstance(elem, branca.colormap.ColorMap):
Expand Down

0 comments on commit 7e61dbd

Please sign in to comment.