Metadata-Version: 2.5
Name: nya-json-type
Version: 0.1.1
Summary: Provide a Json type that is defined as follows: type Json = dict[str, Json] | list[Json] | str | int | float | bool | None
License-File: LICENSE
Requires-Python: >=3.12
Description-Content-Type: text/markdown

# nya-json-type

Provide a `Json` type that is defined as follows:
```py
type Json = dict[str, Json] | list[Json] | str | int | float | bool | None
```

This type is supposed to be a typed return value of the builtin library `json`'s `.loads()`/`.load()` function

## Usage

```py
import json
from nya_json_type import Json

x: Json = json.load("data.json")
```

## Motivation
This allows for typechecker narrowing. I know PyPI is not npm, but this small packages work fine for me and i was sick of having to cupy-paste that snippet of code everywhere.
	~nya
