Skip to content

Commit b8c03d9

Browse files
author
Konrad Cempura
committed
Python 2.7: Copy list using slice
1 parent 88efa69 commit b8c03d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openapi_core/schema/schemas/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def _get_all_required_properties(self):
8181
)
8282

8383
def get_all_required_properties_names(self):
84-
required = self.required.copy()
84+
required = self.required[:]
8585

8686
for subschema in self.all_of:
8787
subschema_req = subschema.get_all_required_properties()

0 commit comments

Comments
 (0)