diff --git a/rodi/__init__.py b/rodi/__init__.py index 567eae8..21f4f0e 100644 --- a/rodi/__init__.py +++ b/rodi/__init__.py @@ -396,7 +396,7 @@ def __init__(self, _type, _args_callbacks): self._instance = None def __call__(self, context, parent_type): - if not self._instance: + if self._instance is None: self._instance = ( self._type(*[fn(context, self._type) for fn in self._args_callbacks]) if self._args_callbacks