Skip to content

Commit 5ac343f

Browse files
yt-msMidnighter
authored andcommitted
fix: remove __future__.annotations whilst we support Python 3.6.
1 parent 6b4be72 commit 5ac343f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/structurizr/model/container.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515

1616
"""Provide a container model."""
1717

18-
from __future__ import annotations
19-
2018
from typing import TYPE_CHECKING, Iterable, List, Optional
2119

2220
from pydantic import Field
@@ -131,7 +129,9 @@ def add_component(self, **kwargs) -> Component:
131129
self += component
132130
return component
133131

134-
def __iadd__(self, component: Component) -> Container:
132+
def __iadd__(self, component: Component) -> "Container":
133+
"""Add a newly constructed component to this container."""
134+
# TODO: once we move past python 3.6 change to proper return type via __future__.annotations
135135
if component in self.components:
136136
# Nothing to do
137137
return self

0 commit comments

Comments
 (0)