Skip to content

Commit a576696

Browse files
committed
new mypy errors
1 parent 606ba61 commit a576696

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pccommon/pccommon/openapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
def recursive_itemfix(schema: Any) -> None:
55
try:
6-
if type(schema["items"]) == list:
6+
if isinstance(schema["items"], list):
77
schema["items"] = schema["items"][0]
88
except KeyError:
99
pass
@@ -15,7 +15,7 @@ def recursive_itemfix(schema: Any) -> None:
1515
pass
1616

1717
for _, v in schema.items():
18-
if type(v) == dict:
18+
if isinstance(v, dict):
1919
recursive_itemfix(v)
2020

2121

0 commit comments

Comments
 (0)