Skip to content

Commit 064a46b

Browse files
Apply formatting
1 parent a4658f4 commit 064a46b

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
@@ -679,8 +679,7 @@ def _resolve_by_init_and_annotations(
679679
init_fns = self._get_resolvers_for_parameters(concrete_type, context, params)
680680

681681
ann_params = {
682-
key: Dependency(key, value)
683-
for key, value in extra_annotations.items()
682+
key: Dependency(key, value) for key, value in extra_annotations.items()
684683
}
685684
ann_fns = self._get_resolvers_for_parameters(concrete_type, context, ann_params)
686685
annotation_resolvers = {
@@ -727,8 +726,7 @@ def __call__(self, context: ResolutionContext):
727726
extra_annotations = {
728727
k: v
729728
for k, v in class_annotations.items()
730-
if k not in init_param_names
731-
and not self._ignore_class_attribute(k, v)
729+
if k not in init_param_names and not self._ignore_class_attribute(k, v)
732730
}
733731
if extra_annotations:
734732
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)