pysimdjson icon indicating copy to clipboard operation
pysimdjson copied to clipboard

Add load and loads to type stubs

Open mdboom opened this issue 1 year ago • 1 comments

The load and loads methods aren't included in the typestubs, so pyright complains when users use them:

foo.py:45:28 - error: "load" is not a known member of module "simdjson" (reportAttributeAccessIssue)

mdboom avatar Jun 13 '24 20:06 mdboom

Thanks! But json.load and json.loads aren't used for the pysimdjson.load and pysimdjson.loads, they have different signatures.

TkTech avatar Jun 19 '24 07:06 TkTech