Skip to content

Commit abe2045

Browse files
committed
fix: remove pylint suppression (#55)
1 parent fc0a4d4 commit abe2045

File tree

6 files changed

+290
-235
lines changed

6 files changed

+290
-235
lines changed

poetry.lock

Lines changed: 284 additions & 229 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyomnilogic_local/models/filter_diagnostics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from pydantic import BaseModel, Field
3+
from pydantic.v1 import BaseModel, Field
44
from xmltodict import parse as xml_parse
55

66

@@ -23,7 +23,7 @@ class Config:
2323
orm_mode = True
2424

2525
def get_param_by_name(self, name: str) -> int:
26-
return [param.value for param in self.parameters if param.name == name][0] # pylint: disable=not-an-iterable
26+
return [param.value for param in self.parameters if param.name == name][0]
2727

2828
@staticmethod
2929
def load_xml(xml: str) -> FilterDiagnostics:

pyomnilogic_local/models/leadmessage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from pydantic import BaseModel, Field
3+
from pydantic.v1 import BaseModel, Field
44

55
from .util import ParameterGetter
66

pyomnilogic_local/models/mspconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
else:
1010
from typing_extensions import Self
1111

12-
from pydantic import BaseModel, Field, ValidationError
12+
from pydantic.v1 import BaseModel, Field, ValidationError
1313
from xmltodict import parse as xml_parse
1414

1515
from ..exceptions import OmniParsingException

pyomnilogic_local/models/telemetry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from typing import Any, SupportsInt, TypeAlias, TypeVar, cast, overload
44

5-
from pydantic import BaseModel, Field, ValidationError
5+
from pydantic.v1 import BaseModel, Field, ValidationError
66
from xmltodict import parse as xml_parse
77

88
from ..exceptions import OmniParsingException

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ omnilogic = "pyomnilogic_local.cli:main"
2020

2121
[tool.poetry.dependencies]
2222
python = "^3.10"
23-
pydantic = "^1.10.7"
23+
pydantic = ">=1.10.17"
2424
xmltodict = "^0.13.0"
2525

2626
[tool.poetry.group.dev.dependencies]

0 commit comments

Comments
 (0)