We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b4be72 commit 5ac343fCopy full SHA for 5ac343f
src/structurizr/model/container.py
@@ -15,8 +15,6 @@
15
16
"""Provide a container model."""
17
18
-from __future__ import annotations
19
-
20
from typing import TYPE_CHECKING, Iterable, List, Optional
21
22
from pydantic import Field
@@ -131,7 +129,9 @@ def add_component(self, **kwargs) -> Component:
131
129
self += component
132
130
return component
133
134
- def __iadd__(self, component: Component) -> Container:
+ def __iadd__(self, component: Component) -> "Container":
+ """Add a newly constructed component to this container."""
+ # TODO: once we move past python 3.6 change to proper return type via __future__.annotations
135
if component in self.components:
136
# Nothing to do
137
return self
0 commit comments