Skip to content

Commit

Permalink
revert collections change
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopamaral committed Feb 15, 2024
1 parent 3a3532a commit dbdd011
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion singer_sdk/helpers/_flattening.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from __future__ import annotations

import collections
import itertools
import re
import typing as t
Expand Down Expand Up @@ -419,7 +420,7 @@ def _flatten_record(
items: list[tuple[str, t.Any]] = []
for k, v in record_node.items():
new_key = flatten_key(k, parent_key, separator)
if isinstance(v, t.MutableMapping) and (
if isinstance(v, collections.abc.MutableMapping) and (
(flattened_schema and new_key not in flattened_schema.get("properties", {}))
or (not flattened_schema and level < max_level)
):
Expand Down

0 comments on commit dbdd011

Please sign in to comment.