Skip to content

MyPy doesn't find PyShp-stubs #382

@JamesParrott

Description

@JamesParrott

PyShp Version

latest, 3.03

Python Version

3

Your code

# pip install PyShp[stubs]

# Expected to fail typechecking, as well as at runtime:

import shapefile

with shapefile.Writer('delete_me.shp', shapeType = "1") as w:
    w.field("name")
    w.point([2,3])
    w.record("test")

Full stacktrace

mypy cannot find typing info for shapefile.py

Other notes

uv renames the wheel and sdist to PyShp_stubs.* from PyShp-stubs.*

mypy doesn't seem to pick up shapefile.pyi

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions