Skip to content

Commit

Permalink
Remove Dataclass + Ignore E0213 (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
Behemyth authored Jun 1, 2022
1 parent 5f46c7c commit 33a7137
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
7 changes: 3 additions & 4 deletions cppython/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from __future__ import annotations # Required for self-referenced pydantic types

from abc import abstractmethod
from dataclasses import dataclass
from pathlib import Path
from typing import Any, Optional

Expand All @@ -24,7 +23,7 @@ class Preset(BaseModel):
description: Optional[str]

@validator("inherits")
def validate_str(cls, values):
def validate_str(cls, values): # pylint: disable=E0213
"""
Conform to list
"""
Expand Down Expand Up @@ -94,7 +93,7 @@ class CMakePresets(BaseModel, extra=Extra.forbid):
testPresets: Optional[list[TestPreset]]

@validator("include")
def validate_path(cls, values):
def validate_path(cls, values): # pylint: disable=E0213
"""
TODO
"""
Expand All @@ -117,7 +116,7 @@ class ProjectConfiguration(BaseModel):
verbosity: int = 0

@validator("verbosity")
def min_max(cls, value):
def min_max(cls, value): # pylint: disable=E0213
"""
TODO
"""
Expand Down
19 changes: 10 additions & 9 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 33a7137

Please sign in to comment.