Skip to content

Commit

Permalink
removing model from protected namespace to remove warning (#574)
Browse files Browse the repository at this point in the history
Signed-off-by: Shawn Hurley <[email protected]>
  • Loading branch information
shawn-hurley authored Jan 23, 2025
1 parent 5583c71 commit e831798
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kai/rpc_server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import yaml
from opentelemetry import trace
from pydantic import BaseModel
from pydantic import BaseModel, ConfigDict

from kai.analyzer import AnalyzerLSP
from kai.analyzer_types import ExtendedIncident, Incident, RuleSet, Violation
Expand Down Expand Up @@ -78,6 +78,8 @@ class KaiRpcApplicationConfig(CamelCaseBaseModel):
analyzer_lsp_dep_labels_path: Optional[AutoAbsPathExists] = None
analyzer_lsp_excluded_paths: Optional[list[AutoAbsPathExists]] = None

model_config = ConfigDict(protected_namespaces=())

@staticmethod
def model_validate_filepath(filepath: str | Path) -> "KaiRpcApplicationConfig":
"""
Expand Down

0 comments on commit e831798

Please sign in to comment.