conferences | speakers | series

Adding static type hints to fiona

home

Adding static type hints to fiona
FOSS4G 2023

Static type hints according to [PEP 484](https://peps.python.org/pep-0484/) (and its extensions) have been a part of Python since version 3.5, which came out in 2015. [Research from 2021](https://lp.jetbrains.com/python-developers-survey-2021/#stacked-chart-863) shows that 3 out of 4 Python developers already use optional type hinting at least sometimes in their projects. Time is ripe for static type hints to enter the FOSS4G Python world! A [GitHub issue on `fiona`'s issue tracker to add static type hints to the library](https://github.com/Toblerity/Fiona/issues/1125) recently gained some traction. Currently, it is [envisioned](https://github.com/Toblerity/Fiona/issues/1125#issuecomment-1424553816) to create type stubs for `fiona` 1.9 and possibly move the type hints into core `fiona` with the future 2.0 version. This talk will give an overview on the current status of the effort to add type hints to `fiona`. Furthermore it will briefly discuss considerations and the reasoning behind design decisions taken up until then. Contributions to the effort are very much welcome – just take part in the [discussion on GitHub](https://github.com/Toblerity/Fiona/issues/1125).

None

Speakers: Stefan Brand Fabian Schindler-Strauss