File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 30
30
args : [--profile=black]
31
31
32
32
- repo : https://github.com/asottile/pyupgrade
33
- rev : v3.9.0
33
+ rev : v3.10.1
34
34
hooks :
35
35
- id : pyupgrade
36
36
args : [--py37-plus]
44
44
stages : [manual]
45
45
46
46
- repo : https://github.com/pycqa/flake8
47
- rev : 6.0 .0
47
+ rev : 6.1 .0
48
48
hooks :
49
49
- id : flake8
50
50
additional_dependencies :
Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ def cast_all(
12
12
) -> Union [List , Dict ]:
13
13
if isinstance (o , list ):
14
14
for i , v in enumerate (o ):
15
- if type (v ) == from_type :
15
+ if type (v ) is from_type :
16
16
v2 = to_type (v )
17
17
if v == v2 :
18
18
o [i ] = v2
19
19
elif isinstance (v , (list , dict )):
20
20
cast_all (v , from_type , to_type )
21
21
elif isinstance (o , dict ):
22
22
for k , v in o .items ():
23
- if type (v ) == from_type :
23
+ if type (v ) is from_type :
24
24
v2 = to_type (v )
25
25
if v == v2 :
26
26
o [k ] = v2
You can’t perform that action at this time.
0 commit comments