Skip to content

Commit 718f2d0

Browse files
Apply formatting
1 parent 65d9bb6 commit 718f2d0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

rodi/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -696,8 +696,7 @@ def _resolve_by_init_and_annotations(
696696
init_fns = self._get_resolvers_for_parameters(concrete_type, context, params)
697697

698698
ann_params = {
699-
key: Dependency(key, value)
700-
for key, value in extra_annotations.items()
699+
key: Dependency(key, value) for key, value in extra_annotations.items()
701700
}
702701
ann_fns = self._get_resolvers_for_parameters(concrete_type, context, ann_params)
703702
annotation_resolvers = {
@@ -746,8 +745,7 @@ def __call__(self, context: ResolutionContext):
746745
extra_annotations = {
747746
k: v
748747
for k, v in class_annotations.items()
749-
if k not in init_param_names
750-
and not self._ignore_class_attribute(k, v)
748+
if k not in init_param_names and not self._ignore_class_attribute(k, v)
751749
}
752750
if extra_annotations:
753751
try:

tests/examples.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,10 @@ def __init__(self) -> None:
287287

288288

289289
class MixedWithInitArgs:
290-
"""Has a custom __init__ with injectable args, plus additional class-level annotations."""
290+
"""
291+
Has a custom __init__ with injectable args, plus additional class-level
292+
annotations.
293+
"""
291294

292295
extra: MixedDep2
293296

tests/test_services.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from typing import (
66
Any,
77
ClassVar,
8-
Dict,
98
Generic,
109
Iterable,
1110
List,

0 commit comments

Comments
 (0)