Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Add a missing strict=True.
Browse files Browse the repository at this point in the history
Really need a lint for this, see e.g. #13336
  • Loading branch information
David Robertson committed Aug 10, 2022
1 parent bd917d3 commit f8f6037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/rest/client/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class PostBody(SynapseBaseModel):
# workaround for https://github.com/samuelcolvin/pydantic/issues/156
new_password: Optional[StrictStr] = None
else:
new_password: Optional[constr(max_length=512)] = None
new_password: Optional[constr(max_length=512, strict=True)] = None

@interactive_auth_handler
async def on_POST(self, request: SynapseRequest) -> Tuple[int, JsonDict]:
Expand Down

0 comments on commit f8f6037

Please sign in to comment.