conservancy_beancount/conservancy_beancount
Brett Smith 959bda307b typing: Refine any generics when possible.
These were tightened up by running mypy with --disallow-any-generics
and cleaning up reported errors.

There are still a couple of cases I don't know how to deal with
right now that prevent me from setting that option permanently:

* plugin/__init__.py sets up a dict where the key is a Directive
  and its value is a set of hooks that correspond to that type
  of directive. The relationship between key and value is not
  expressable through the type system, and any other solution would
  make the code way more involved and less dynamic.

* The type variable used in _GenericRange still isn't quite right,
  in the sense that specifying a value for CT creates more errors
  I don't know how to deal with. Protocols seem like the right
  solution for that but they apparently didn't land for Python 3.7
  that I can see.
2020-03-29 23:28:03 -04:00
..
plugin setup: Disallow untyped calls. 2020-03-29 23:22:35 -04:00
__init__.py Initial commit: license, setup.py, gitignore, skeleton structure. 2020-03-05 09:33:23 -05:00
beancount_types.py typing: Refine any generics when possible. 2020-03-29 23:28:03 -04:00
config.py config: Add Config.payment_threshold() method. 2020-03-29 10:21:37 -04:00
data.py data: Posting.is_payment casts threshold to address typing issue. 2020-03-29 15:32:51 -04:00
errors.py typing: Refine any generics when possible. 2020-03-29 23:28:03 -04:00
rtutil.py setup: Disallow untyped defs. 2020-03-29 23:18:40 -04:00