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 3030 args : [--profile=black]
3131
3232 - repo : https://github.com/asottile/pyupgrade
33- rev : v3.9.0
33+ rev : v3.10.1
3434 hooks :
3535 - id : pyupgrade
3636 args : [--py37-plus]
4444 stages : [manual]
4545
4646 - repo : https://github.com/pycqa/flake8
47- rev : 6.0 .0
47+ rev : 6.1 .0
4848 hooks :
4949 - id : flake8
5050 additional_dependencies :
Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ def cast_all(
1212) -> Union [List , Dict ]:
1313 if isinstance (o , list ):
1414 for i , v in enumerate (o ):
15- if type (v ) == from_type :
15+ if type (v ) is from_type :
1616 v2 = to_type (v )
1717 if v == v2 :
1818 o [i ] = v2
1919 elif isinstance (v , (list , dict )):
2020 cast_all (v , from_type , to_type )
2121 elif isinstance (o , dict ):
2222 for k , v in o .items ():
23- if type (v ) == from_type :
23+ if type (v ) is from_type :
2424 v2 = to_type (v )
2525 if v == v2 :
2626 o [k ] = v2
You can’t perform that action at this time.
0 commit comments