Skip to content

Commit

Permalink
🚨 fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
StummeJ committed Feb 27, 2024
1 parent 522e43a commit b03cb80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions rodi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def get_annotations_type_provider(
life_style: ServiceLifeStyle,
resolver_context: ResolutionContext,
):
def factory(context, parent_type, requested_type):
def factory(context, parent_type, registered_type):
instance = concrete_type()
for name, resolver in resolvers.items():
setattr(instance, name, resolver(context, parent_type))
Expand Down Expand Up @@ -799,7 +799,7 @@ class FactoryWrapperNoArgs:
def __init__(self, factory):
self.factory = factory

def __call__(self, context, activating_type, parent_type):
def __call__(self, context, activating_type, registered_type):
return self.factory()


Expand All @@ -809,7 +809,7 @@ class FactoryWrapperContextArg:
def __init__(self, factory):
self.factory = factory

def __call__(self, context, activating_type, parent_type):
def __call__(self, context, activating_type, registered_type):
return self.factory(context)


Expand All @@ -819,7 +819,7 @@ class FactoryWrapperPartentArg:
def __init__(self, factory):
self.factory = factory

def __call__(self, context, activating_type, parent_type):
def __call__(self, context, activating_type, registered_type):
return self.factory(context, activating_type)


Expand Down Expand Up @@ -1110,7 +1110,7 @@ def _check_factory(factory, signature, handled_type) -> Callable:

if params_len == 2:
return FactoryWrapperPartentArg(factory)

if params_len == 3:
return factory

Expand Down
2 changes: 1 addition & 1 deletion tests/test_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ def cat_factory_with_context_and_activating_type(context, activating_type) -> Ca


def cat_factory_with_context_activating_type_and_requested_type(
context, activating_type, requested_type
context, activating_type, requested_type
) -> Cat:
assert isinstance(context, ActivationScope)
assert activating_type is Cat
Expand Down

0 comments on commit b03cb80

Please sign in to comment.