Oven logo

Oven

Published

Static typing indicator for PyShp 3 (which is already typed). PyShp is a pure Python read/write support for ESRI Shapefile format

pip install pyshp-stubs

Package Downloads

Weekly DownloadsMonthly Downloads

Project URLs

Requires Python

>=3.9

Dependencies

    PyShp-stubs

    Nominal type stubs for PyShp.

    PyShp 3 is statically typed. PyShp has historically been a single file library (shapefile.py).

    According to PEP 561, and the spec in order to add a py.typed marker file (without indicating to type checkers that every package the user has installed adajacent to PyShp should also be type checked, regardless of whether all such packages support that or not), "The single-file module should be refactored into a package".

    Myself and several other project contributers are reluctant to give up the single-file module (shapefile.py). We quite like it.

    The purpose of this package is purely to indicate to type-checkers that PyShp is typed. It just so happens to be primarily typed in-line in the main library, from which the stubs in shapefile.pyi are largely automatically generated by MyPy's stubgen.