Skip to content

Commit

Permalink
Add mashumaro no_copy_collection() to dialect
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank committed Dec 19, 2024
1 parent b7dd3ae commit d77bfa8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dbt_common/dataclass_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@
from mashumaro.jsonschema import build_json_schema

# following includes DataClassDictMixin
from mashumaro.mixins.msgpack import DataClassMessagePackMixin
from mashumaro.mixins.msgpack import DataClassMessagePackMixin, MessagePackDialect

import functools


class FixedMessagePackDialect(MessagePackDialect):
no_copy_collections = ()


class ValidationError(jsonschema.ValidationError):
pass

Expand Down Expand Up @@ -49,6 +53,7 @@ class dbtMashConfig(MashBaseConfig):
}
serialize_by_alias = True
lazy_compilation = True
dialect = FixedMessagePackDialect


# This class pulls in DataClassDictMixin from Mashumaro. The 'to_dict'
Expand Down

0 comments on commit d77bfa8

Please sign in to comment.