JaWeilBaum / pyqtlet2

pyqtlet2 extends pyqtlet which initially brought Leaflet maps to PyQt5 and PySide6.
Other
37 stars 19 forks source link

feature: add `return self` wherever sensible #15

Closed mcondarelli closed 2 years ago

mcondarelli commented 2 years ago

Add return self wherever sensible to allow call chaining (Javascript-style).

This commit does not change current behavior at all. return self statement was only added to methods not having an explicit return statement.

I added a few more returns than I actually need to cover other possible usages.