Changeset - 22d5b7e90a1e
[Not reviewed]
0 2 0
Brett Smith - 4 years ago 2020-03-30 03:22:35
brettcsmith@brettcsmith.org
setup: Disallow untyped calls.
2 files changed with 7 insertions and 2 deletions:
0 comments (0 inline, 0 general)
conservancy_beancount/plugin/__init__.py
Show inline comments
...
 
@@ -26,2 +26,3 @@ from typing import (
 
    List,
 
    Optional,
 
    Set,
...
 
@@ -59,4 +60,7 @@ class HookRegistry:
 

	
 
    # This method is too dynamic to typecheck.
 
    def import_hooks(self, mod_name, *hook_names, package=__module__):  # type:ignore
 
    def import_hooks(self,
 
                     mod_name: str,
 
                     *hook_names: str,
 
                     package: Optional[str]=__module__,  # type:ignore[name-defined]
 
    ) -> None:
 
        module = importlib.import_module(mod_name, package)
setup.cfg
Show inline comments
...
 
@@ -6,2 +6,3 @@ typecheck=pytest --addopts="--mypy conservancy_beancount"
 
disallow_any_unimported = True
 
disallow_untyped_calls = True
 
disallow_untyped_defs = True
0 comments (0 inline, 0 general)