A package containing stub files for the beancount package.
Install the package:
$> pip install beancount-stubs
Run mypy
:
$> mypy .
The mypy
binary will automatically detect the stubs included in the installed
package and use them when asserting against the beancount package. Note that
many of the subpackages in the beancount package do not have stubs and mypy
will complain about the missing stubs. To disable this error on an unsupported
package, use the following syntax:
from beancount.ops import validation # type: ignore
The following subpackages/modules are currently supported:
beancount.loader
beancount.core.*
beancount.query.numberify
beancount.query.query
beancount.query.query_compile
beancount.query.query_execute
Check out the issues for items needing attention or submit your own and then:
- Fork the repo
- Create your feature branch (git checkout -b feature/fooBar)
- Commit your changes (git commit -am 'Add some fooBar')
- Push to the branch (git push origin feature/fooBar)
- Create a new Pull Request