Skip to content

Commit

Permalink
Exclude few lines from missing coverage
Browse files Browse the repository at this point in the history
They will never be executed so they artificially lower the coverage
total.
  • Loading branch information
jstasiak committed Dec 14, 2019
1 parent 484b688 commit 94f5460
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions injector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def multibind(
interface: Type[List[T]],
to: Union[List[T], Callable[..., List[T]], Provider[List[T]]],
scope: Union[Type['Scope'], 'ScopeDecorator'] = None,
) -> None:
) -> None: # pragma: no cover
pass

@overload
Expand All @@ -445,7 +445,7 @@ def multibind(
interface: Type[Dict[K, V]],
to: Union[Dict[K, V], Callable[..., Dict[K, V]], Provider[Dict[K, V]]],
scope: Union[Type['Scope'], 'ScopeDecorator'] = None,
) -> None:
) -> None: # pragma: no cover
pass

def multibind(
Expand Down Expand Up @@ -979,7 +979,7 @@ def call_with_injection(
except TypeError as e:
reraise(e, CallError(self_, callable, args, dependencies, e, self._stack))
# Needed because of a mypy-related issue (https://github.com/python/mypy/issues/8129).
assert False, "unreachable"
assert False, "unreachable" # pragma: no cover

@private
@synchronized(lock)
Expand Down Expand Up @@ -1243,12 +1243,12 @@ def _validate_provider_return_type(function: Callable, return_type: type, allow_


@overload
def inject(constructor_or_class: CallableT) -> CallableT:
def inject(constructor_or_class: CallableT) -> CallableT: # pragma: no cover
pass


@overload
def inject(constructor_or_class: Type[T]) -> Type[T]:
def inject(constructor_or_class: Type[T]) -> Type[T]: # pragma: no cover
pass


Expand Down

0 comments on commit 94f5460

Please sign in to comment.