python-visualization / branca

This library is a spinoff from folium, that would host the non-map-specific features.
https://python-visualization.github.io/branca/
MIT License
110 stars 63 forks source link

Add type hints #146

Closed Conengmo closed 1 month ago

Conengmo commented 8 months ago

Contains some (internally) functional changes as well:

Do separately later:

Conengmo commented 2 months ago

@ocefpaf would you mind taking a look at this PR at some time? No hurry. I know it's pretty big, but I don't know how to do it otherwise, it's just a lot of type hints. I'm open to suggestions! I'm asking you since you also did https://github.com/python-visualization/folium/pull/1677.

ocefpaf commented 2 months ago

@ocefpaf would you mind taking a look at this PR at some time? No hurry. I know it's pretty big, but I don't know how to do it otherwise, it's just a lot of type hints. I'm open to suggestions! I'm asking you since you also did python-visualization/folium#1677.

Sure. I don't have a lot of experience but we can try to run mypy here to check things? I'll see what we can do. There are also some pre-commits that can help.

PS: we need to fix a conflict but I'm looking at it now.

Conengmo commented 2 months ago

Thanks Filipe, much appreciated! I’ll solve the merge conflict before merging. Good idea to add a precommit config as well, I’ll do that in a separate PR.