Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 9f92bda

Browse files
committed
fix types
1 parent 10214d1 commit 9f92bda

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

flake8_idom_hooks/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
)
55

66
try:
7-
__version__ = _get_distribution(__name__).version
7+
__version__: str = _get_distribution(__name__).version
88
except _DistributionNotFound: # pragma: no cover
99
# package is not installed
1010
__version__ = "0.0.0"

flake8_idom_hooks/exhaustive_deps.py

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ def _check_hook_dependency_list_is_exhaustive(
8585
func: Union[ast.FunctionDef, ast.Lambda],
8686
dependency_expr: Optional[ast.expr],
8787
) -> None:
88+
assert self._current_hook_or_element is not None
89+
8890
dep_names = self._get_dependency_names_from_expression(
8991
hook_name, dependency_expr
9092
)

0 commit comments

Comments
 (0)