Skip to content

Commit 590dd6c

Browse files
Gabe PescoGabe Pesco
authored andcommitted
using Field types for resolvers
1 parent c75f376 commit 590dd6c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

sqlmesh/core/config/ownership.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import re
44
import typing as t
55

6+
from pydantic import Field
67
from pydantic.functional_validators import BeforeValidator
78

89
from sqlmesh.core.config.base import BaseConfig
@@ -48,9 +49,9 @@ class OwnershipConfig(BaseConfig):
4849
"""
4950

5051
environment_owner_mapping: OwnershipMapping = {}
51-
environment_owner_resolver: t.Optional[EnvironmentOwnerResolver] = None
52+
environment_owner_resolver: t.Optional[EnvironmentOwnerResolver] = Field(default=None, exclude=True)
5253
physical_owner: t.Optional[str] = None
53-
physical_owner_resolver: t.Optional[PhysicalOwnerResolver] = None
54+
physical_owner_resolver: t.Optional[PhysicalOwnerResolver] = Field(default=None, exclude=True)
5455

5556
@property
5657
def is_active(self) -> bool:

0 commit comments

Comments
 (0)