Skip to content

Commit fe60bca

Browse files
Bump mypy from 0.991 to 1.0.0 (#198)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
1 parent 68fceb9 commit fe60bca

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

matter_server/common/helpers/util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def parse_value(
113113
return implicit_dataclass_from_dict(value)
114114
if isinstance(value_type, str):
115115
# type is provided as string
116-
if value_type == "type":
116+
if value_type == "type" and isinstance(value, str):
117117
return locate(value) or eval(value)
118118
try:
119119
value_type = eval(value_type)

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ test = [
3737
"flake8==6.0.0",
3838
"flake8-docstrings==1.7.0",
3939
"isort==5.12.0",
40-
"mypy==0.991",
40+
"mypy==1.0.0",
4141
"pylint==2.16.1",
4242
"pytest==7.2.1",
4343
"pytest-aiohttp==1.0.4",

requirements-test.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ black==23.1.0
22
flake8==6.0.0
33
flake8-docstrings==1.7.0
44
isort==5.12.0
5-
mypy==0.991
5+
mypy==1.0.0
66
pylint==2.16.1
77
pytest==7.2.1
88
pytest-aiohttp==1.0.4

0 commit comments

Comments
 (0)