Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gkze committed Apr 13, 2023
1 parent 592b27d commit 8204039
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 0 additions & 4 deletions .vscode/settings.default.json

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/settings.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"python.formatting.provider": "black"
}
6 changes: 3 additions & 3 deletions powerk8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from __future__ import annotations

from dataclasses import asdict, dataclass, field
from enum import StrEnum
from enum import Enum
from typing import Any, Mapping, Sequence

from kubernetes import config # type: ignore
Expand All @@ -17,7 +17,7 @@
KUBERNETES_LOGO: str = "\U00002388 "


class SegmentArg(StrEnum):
class SegmentArg(Enum):
"""All possible Powerline segment argument types for Powerk8s."""

SHOW_KUBERNETES_LOGO = "show_kube_logo"
Expand All @@ -26,7 +26,7 @@ class SegmentArg(StrEnum):
SHOW_DEFAULT_NAMESPACE = "show_default_namespace"


class HighlightGroup(StrEnum):
class HighlightGroup(Enum):
"""All possible highlight groups for Powerk8s."""

KUBERNETES_CLUSTER_ALERT = "kubernetes_cluster:alert"
Expand Down

0 comments on commit 8204039

Please sign in to comment.