File tree 3 files changed +3
-3
lines changed
matter_server/common/helpers
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ def parse_value(
113
113
return implicit_dataclass_from_dict (value )
114
114
if isinstance (value_type , str ):
115
115
# type is provided as string
116
- if value_type == "type" :
116
+ if value_type == "type" and isinstance ( value , str ) :
117
117
return locate (value ) or eval (value )
118
118
try :
119
119
value_type = eval (value_type )
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ test = [
37
37
" flake8==6.0.0" ,
38
38
" flake8-docstrings==1.7.0" ,
39
39
" isort==5.12.0" ,
40
- " mypy==0.991 " ,
40
+ " mypy==1.0.0 " ,
41
41
" pylint==2.16.1" ,
42
42
" pytest==7.2.1" ,
43
43
" pytest-aiohttp==1.0.4" ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ black==23.1.0
2
2
flake8==6.0.0
3
3
flake8-docstrings==1.7.0
4
4
isort==5.12.0
5
- mypy==0.991
5
+ mypy==1.0.0
6
6
pylint==2.16.1
7
7
pytest==7.2.1
8
8
pytest-aiohttp==1.0.4
You can’t perform that action at this time.
0 commit comments