Skip to content
This repository was archived by the owner on Jan 21, 2023. It is now read-only.

Commit 9d482a5

Browse files
committed
fix: clean up config and typing
1 parent d5e487d commit 9d482a5

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ install_requires =
4242
httpx ~= 0.16
4343
importlib_metadata; python_version <'3.8'
4444
ordered-set
45-
pydantic >= 1.7.1
45+
pydantic >= 1.8.2
4646
python-dotenv
4747
python_requires = >=3.6
4848
tests_require =

src/structurizr/view/view_set.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
from itertools import chain
20-
from typing import TYPE_CHECKING, Iterable, List, Optional, TypeVar, Type
20+
from typing import TYPE_CHECKING, Iterable, List, Optional, Type, TypeVar
2121

2222
from pydantic import Field
2323

@@ -37,7 +37,7 @@
3737

3838

3939
if TYPE_CHECKING:
40-
from ..model import Model, Container # pragma: no cover
40+
from ..model import Model # pragma: no cover
4141

4242

4343
ConcreteView = TypeVar(
@@ -186,7 +186,6 @@ def hydrate(cls, views: ViewSetIO, model: "Model") -> "ViewSet":
186186
component_views = []
187187
for view_io in views.component_views:
188188
container = model.get_element(view_io.container_id)
189-
assert isinstance(container, Container)
190189
view = ComponentView.hydrate(view_io, container=container)
191190
cls._hydrate_view(view, model=model)
192191
component_views.append(view)

tox.ini

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,13 @@ deps =
2121
pytest-raises
2222
passenv =
2323
STRUCTURIZR_*
24-
setenv =
25-
VIRTUALENV_PIP=21.1
2624
commands =
2725
pytest --cov=structurizr --cov-report=term {posargs}
2826

2927
[testenv:isort]
3028
skip_install = True
3129
deps=
32-
isort >=5.0.5
30+
isort
3331
commands=
3432
isort --check-only --diff {toxinidir}/src/structurizr {toxinidir}/tests {toxinidir}/setup.py
3533

0 commit comments

Comments
 (0)