Skip to content

Commit

Permalink
use tuple for not in check
Browse files Browse the repository at this point in the history
Co-authored-by: Nate Prewitt <[email protected]>
  • Loading branch information
JordonPhillips and nateprewitt authored Jun 4, 2024
1 parent 95f95a3 commit ff8998a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-packages/smithy-core/smithy_core/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def as_map(self) -> dict[str, "Document"]:
)

def _wrap_map(self, value: Mapping[str, DocumentValue]) -> dict[str, "Document"]:
if self._schema.shape_type not in [ShapeType.STRUCTURE, ShapeType.UNION]:
if self._schema.shape_type not in (ShapeType.STRUCTURE, ShapeType.UNION):
member_schema = self._schema
if self._schema.shape_type is ShapeType.MAP:
member_schema = self._schema.members["value"]
Expand Down

0 comments on commit ff8998a

Please sign in to comment.