mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 04:15:03 -04:00
Stop sub-classing object (#8249)
This commit is contained in:
parent
9f8abdcc38
commit
c619253db8
168 changed files with 293 additions and 292 deletions
|
@ -95,7 +95,7 @@ def _should_count_as_unread(event: EventBase, context: EventContext) -> bool:
|
|||
return False
|
||||
|
||||
|
||||
class BulkPushRuleEvaluator(object):
|
||||
class BulkPushRuleEvaluator:
|
||||
"""Calculates the outcome of push rules for an event for all users in the
|
||||
room at once.
|
||||
"""
|
||||
|
@ -263,7 +263,7 @@ def _condition_checker(evaluator, conditions, uid, display_name, cache):
|
|||
return True
|
||||
|
||||
|
||||
class RulesForRoom(object):
|
||||
class RulesForRoom:
|
||||
"""Caches push rules for users in a room.
|
||||
|
||||
This efficiently handles users joining/leaving the room by not invalidating
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue