We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68ad0ba commit 7ad013dCopy full SHA for 7ad013d
src/codemodder/codetf.py
@@ -12,7 +12,7 @@
12
from pathlib import Path
13
from typing import TYPE_CHECKING, Optional
14
15
-from pydantic import BaseModel, model_validator
+from pydantic import BaseModel, ConfigDict, model_validator
16
17
from codemodder import __version__
18
from codemodder.logging import logger
@@ -138,16 +138,14 @@ class Rule(BaseModel):
138
name: str
139
url: Optional[str] = None
140
141
- class Config:
142
- frozen = True
+ model_config = ConfigDict(frozen=True)
143
144
145
class Finding(BaseModel):
146
id: Optional[str] = None
147
rule: Rule
148
149
150
151
152
def to_unfixed_finding(
153
self,
0 commit comments