pyshp
pyshp copied to clipboard
This library reads and writes ESRI Shapefiles in pure Python.
### Describe the feature request Great to have. The broad `except:`s in particular should be made more specific. ``` pylint --disable=R,C,E *shapefile.py ************* Module shapefile shapefile.py:1870:13: W0511: TODO: internal __record...
### Describe the feature request Nice to have. An undefined attribute, and undefined names (which are only defined in Python 2 or the deps). ``` pylint --disable=R,C,W *shapefile.py ************* Module...
### PyShp Version latest, 3.03 ### Python Version 3 ### Your code ```shell # pip install PyShp[stubs] # Expected to fail typechecking, as well as at runtime: import shapefile with...
All feedback welcome here: https://github.com/GeospatialPython/pyshp/discussions/380
### Describe the feature request A fix for the known problem in the code has already been merged, but it'd be good to have a real example of "UnboundLocalError when...
### Describe the feature request I was able to overload the type signatures with pretty much the list ones from the stdlib, to adhere to LSP. But I needed to...
### Describe the feature request Is there a way to avoid the current `'type: ignore`, and limit the generic variable to int and float? https://github.com/GeospatialPython/pyshp/blob/19010dfbe0ef7a7ac0d9c2d1a62585a6a4cd2ec4/src/shapefile.py#L361 This would justify typing-extensions, if...
### Describe the feature request Reader.shp = None is what the default does anyway, and I could also be persuaded that we should break backwards compatibility for users who for...
### Describe the feature request Can mypy be taught to narrow to a particular TypedDict from a union of them, based on a test of string keys with `Literal` values...
### Describe the feature request TODO. ### Contributions - [x] I am interested in implementing the described feature request and submit as a PR.