fixed mypy errors

This commit is contained in:
Tim
2023-11-05 16:26:00 +01:00
parent f38728450d
commit c38460c740
3 changed files with 21 additions and 5 deletions

19
poetry.lock generated
View File

@ -3353,6 +3353,23 @@ doc = ["nb2plots (>=0.7)", "nbconvert (<7.9)", "numpydoc (>=1.6)", "pillow (>=9.
extra = ["lxml (>=4.6)", "pydot (>=1.4.2)", "pygraphviz (>=1.11)", "sympy (>=1.10)"]
test = ["pytest (>=7.2)", "pytest-cov (>=4.0)"]
[[package]]
name = "networkx-stubs"
version = "0.0.1"
description = "Typing stubs for NetworkX"
optional = false
python-versions = "*"
files = [
{file = "networkx-stubs-0.0.1.tar.gz", hash = "sha256:1751cbc87898328f89d79476ec6363174c05f9e48592f0953cc1077188717a21"},
{file = "networkx_stubs-0.0.1-py3-none-any.whl", hash = "sha256:ce58dff9b9dcbfdf895d0fce20fa8a73f2e82e581004596b7552086b5bb91366"},
]
[package.dependencies]
networkx = "*"
[package.extras]
dev = ["black", "flake8", "flake8-black", "flake8-pyi", "mypy", "setuptools", "wheel"]
[[package]]
name = "nodeenv"
version = "1.8.0"
@ -7333,4 +7350,4 @@ web-server = ["dash", "dash-auth", "dash-bootstrap-components", "matplotlib", "s
[metadata]
lock-version = "2.0"
python-versions = "^3.11"
content-hash = "bf309ab52bf38a05bf014d83da73c04416b86be10b55f96969965945c3aeaa95"
content-hash = "296eb2d9b44b3dfdcf2b31bbd00f5d606ef51ee324deb87a56d36dc7e1f2f6dc"

View File

@ -55,6 +55,8 @@ cachetools = "^5.3.1"
dash = "^2.14.1"
dash-auth = "^2.0.0"
dash-bootstrap-components = "^1.5.0"
dash_cytoscape = "^0.2.0"
dashvis = "^0.1.3"
datetime = "^5.2"
deutschland = {git = "https://github.com/TrisNol/deutschland.git", branch = "hotfix/python-3.11-support"}
frozendict = "^2.3.8"
@ -76,9 +78,6 @@ torchvision = {version = "*", source = "torch-cpu"}
tqdm = "^4.66.1"
transformers = {version = "*", extras = ["torch"]}
xmltodict = "^0.13.0"
dash_cytoscape = "^0.2.0"
dashvis = "^0.1.3"
[tool.poetry.extras]
ingest = ["selenium", "deutschland", "xmltodict"]
@ -112,6 +111,7 @@ SQLAlchemy = {version = "*", extras = ["mypy"]}
black = "*"
loguru-mypy = "*"
mypy = "*"
networkx-stubs = "^0.0.1"
pandas-stubs = "*"
pip-audit = "*"
pip-licenses = "*"

View File

@ -398,7 +398,6 @@ def network_layout(selected_company_id: int) -> html.Div:
metric,
layout="Spring",
edge_annotation=True,
node_annotation=False,
edge_thickness=1,
)
return html.Div(