We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 732a998 commit ef5fe0cCopy full SHA for ef5fe0c
1 file changed
src/datacustomcode/common_config.py
@@ -12,6 +12,7 @@
12
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
# See the License for the specific language governing permissions and
14
# limitations under the License.
15
+from abc import ABC, abstractmethod
16
import os
17
from typing import Any
18
@@ -48,9 +49,9 @@ class BaseObjectConfig(ForceableConfig):
48
49
)
50
51
-class BaseConfig(BaseModel):
52
- def update(self, other: Any) -> "BaseConfig":
53
- raise NotImplementedError("Subclasses must implement update method")
+class BaseConfig(ABC, BaseModel):
+ @abstractmethod
54
+ def update(self, other: Any) -> "BaseConfig": ...
55
56
def load(self, config_path: str) -> "BaseConfig":
57
"""Load configuration from a YAML file and merge with existing config"""
0 commit comments