munch-stubs

Mypy plugin and stubs for munch


Keywords
utility, mypy, stubs
License
MIT
Install
pip install munch-stubs==0.1.2

Documentation

PyPI version Code on Github Code style: black GitHub last commit

munch-stubs

Add types for munch for mypy.

Installation

$ pip install munch-stubs

Usage

Mypy will automatically use the type annotations in this package, once it is installed. You just need to annotate your code:

from munch import Munch


def foo(bar: Munch) -> int:
    return bar.foo

For general hints how to use type annotations, please read Type Annotations in Python 3.8.