Skip to content

Commit

Permalink
Put a lambda on it
Browse files Browse the repository at this point in the history
  • Loading branch information
jtcohen6 committed Dec 7, 2022
1 parent a530319 commit 763c05a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/dbt/helper_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,12 @@ class NVEnum(StrEnum):
def __eq__(self, other):
return isinstance(other, NVEnum)

def __call__(self):
return self.novalue


@dataclass
class NoValue(dbtClassMixin):
"""Sometimes, you want a way to say none that isn't None"""

novalue: NVEnum = field(default_factory=NVEnum.novalue)
novalue: NVEnum = field(default_factory=lambda: NVEnum.novalue)


dbtClassMixin.register_field_encoders(
Expand Down

0 comments on commit 763c05a

Please sign in to comment.