diff options
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2023-08-29 09:41:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-29 09:41:43 -0400 |
commit | 001fc7bd199b335f628908a0c91e44967cef2c2b (patch) | |
tree | 6c4c082742b5a115da98f6d40d8a1030a981468b /synapse/event_auth.py | |
parent | Support IPv6-only SMTP servers (#16155) (diff) | |
download | synapse-001fc7bd199b335f628908a0c91e44967cef2c2b.tar.xz |
Bump ruff from 0.0.277 to 0.0.286 (#16198)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'synapse/event_auth.py')
-rw-r--r-- | synapse/event_auth.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/event_auth.py b/synapse/event_auth.py index 531bb74f07..2ac9f8b309 100644 --- a/synapse/event_auth.py +++ b/synapse/event_auth.py @@ -852,11 +852,11 @@ def _check_power_levels( "kick", "invite", }: - if type(v) is not int: + if type(v) is not int: # noqa: E721 raise SynapseError(400, f"{v!r} must be an integer.") if k in {"events", "notifications", "users"}: if not isinstance(v, collections.abc.Mapping) or not all( - type(v) is int for v in v.values() + type(v) is int for v in v.values() # noqa: E721 ): raise SynapseError( 400, |