mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-10-23 01:49:58 +00:00
chore: Add pylint for DB-GPT core lib (#1076)
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
"""The interface for serializing."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from abc import ABC, abstractmethod
|
||||
from typing import Dict, Type
|
||||
from typing import Dict, Optional, Type
|
||||
|
||||
|
||||
class Serializable(ABC):
|
||||
serializer: "Serializer" = None
|
||||
"""The serializable abstract class."""
|
||||
|
||||
serializer: Optional["Serializer"] = None
|
||||
|
||||
@abstractmethod
|
||||
def to_dict(self) -> Dict:
|
||||
|
Reference in New Issue
Block a user