mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-27 18:45:16 -04:00
Fix some test failures when frozen_dicts are enabled (#6642)
Fixes #4026
This commit is contained in:
parent
9f6c1befbb
commit
ba897a7590
5 changed files with 20 additions and 11 deletions
|
@ -12,7 +12,7 @@
|
|||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import collections.abc
|
||||
import logging
|
||||
from collections import namedtuple
|
||||
from typing import Iterable, Tuple
|
||||
|
@ -107,7 +107,7 @@ class StateGroupWorkerStore(EventsWorkerStore, SQLBaseStore):
|
|||
predecessor = create_event.content.get("predecessor", None)
|
||||
|
||||
# Ensure the key is a dictionary
|
||||
if not isinstance(predecessor, dict):
|
||||
if not isinstance(predecessor, collections.abc.Mapping):
|
||||
return None
|
||||
|
||||
return predecessor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue