mirror of https://github.com/zulip/zulip.git
ruff: Fix C418 Unnecessary `dict` literal passed to `dict()`.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
9db3451333
commit
5ecff88c1b
|
@ -97,8 +97,8 @@ class ZulipSCIMUser(SCIMUser):
|
|||
"givenName": first_name,
|
||||
"familyName": last_name,
|
||||
}
|
||||
d = dict(
|
||||
{
|
||||
|
||||
return {
|
||||
"schemas": [scim_constants.SchemaURI.USER],
|
||||
"id": self.obj.id,
|
||||
"userName": self.obj.delivery_email,
|
||||
|
@ -112,9 +112,6 @@ class ZulipSCIMUser(SCIMUser):
|
|||
# of this value.
|
||||
"meta": self.meta,
|
||||
}
|
||||
)
|
||||
|
||||
return d
|
||||
|
||||
def from_dict(self, d: Dict[str, Any]) -> None:
|
||||
"""Consume a dictionary conforming to the SCIM User Schema. The
|
||||
|
|
Loading…
Reference in New Issue