Skip to content

Commit

Permalink
Remove NOQA
Browse files Browse the repository at this point in the history
  • Loading branch information
myakove committed Dec 18, 2024
1 parent 4801187 commit a13e1d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ocp_resources/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ def parse(self, vstring: str):

if len(components) not in (2, 4) or components[0] != "v" or not isinstance(components[1], int):
raise ValueError(errmsg)

if len(components) == 4 and (components[2] not in ("alpha", "beta") or not isinstance(components[3], int)):
raise ValueError(errmsg)

Expand Down Expand Up @@ -506,7 +507,7 @@ def _prepare_node_selector_spec(self) -> dict[str, str]:
return self.node_selector or self.node_selector_labels or {}

@ClassProperty
def kind(cls) -> str | None: # noqa: N805
def kind(cls) -> str | None:
return sub_resource_level(cls, NamespacedResource, Resource)

def _base_body(self) -> None:
Expand Down

0 comments on commit a13e1d8

Please sign in to comment.