fidelity / spock

spock is a framework that helps manage complex parameter configurations during research and development of Python applications
https://fidelity.github.io/spock/
Apache License 2.0
122 stars 13 forks source link

Adds support for typing.Dict types #231

Closed ncilfone closed 2 years ago

ncilfone commented 2 years ago

What does this PR do?

Added support for typing.Dict types with type checking for types of both keys and values (includes advanced types such as Dict[str, Tuple[Callable, Callable]])

Checklist

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 1999629553

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
spock/backend/typed.py 15 16 93.75%
spock/backend/field_handlers.py 32 35 91.43%
spock/backend/utils.py 66 69 95.65%
<!-- Total: 244 251 97.21% -->
Totals Coverage Status
Change from base Build 1981256000: 0.6%
Covered Lines: 1929
Relevant Lines: 2009

💛 - Coveralls