Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions modern_di/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,8 @@ class DependencyPathMixin:
chain of provider names as it propagates back up to the caller. With an empty `dependency_path`
(the error never passed through a resolution frame) `_render_body` returns the base message
unchanged.

Empty `__slots__`: each concrete error declares the `_base_message`/`dependency_path` slots
itself, avoiding the `TypeError: multiple bases have instance lay-out conflict` that a slotted
mixin combined with an `Exception` subclass would otherwise raise.
"""

__slots__ = ()

def __init__(self, message: str) -> None:
self._base_message = message
self.dependency_path: list[ResolutionStep] = []
Expand Down
Loading