Skip to content

Commit 4a1e419

Browse files
committed
Fix some type errors
1 parent cf0e881 commit 4a1e419

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

folium/features.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1825,7 +1825,7 @@ def __init__(self, popup: Union[IFrame, Html, str, None] = None):
18251825
if isinstance(popup, Element):
18261826
popup = popup.render()
18271827
if popup:
1828-
self.popup = "`" + escape_backticks(popup) + "`"
1828+
self.popup = "`" + escape_backticks(popup) + "`" # type: ignore
18291829
else:
18301830
self.popup = '"Latitude: " + lat + "<br>Longitude: " + lng '
18311831

@@ -2054,8 +2054,8 @@ def __init__(
20542054
if control:
20552055
self._name = control
20562056

2057-
if position:
2058-
position = position.lower()
2057+
if position is not None:
2058+
position = position.lower() # type: ignore
20592059
if position not in (args := get_args(TypePosition)):
20602060
raise TypeError(f"position must be one of {args}")
20612061
kwargs["position"] = position

0 commit comments

Comments
 (0)