Skip to content

Commit 37cfde3

Browse files
committed
switch back to regular enum
1 parent 3d55e13 commit 37cfde3

File tree

1 file changed

+3
-3
lines changed
  • python/pip_install/tools/wheel_installer

1 file changed

+3
-3
lines changed

python/pip_install/tools/wheel_installer/wheel.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import re
1919
from collections import defaultdict, namedtuple
2020
from dataclasses import dataclass
21-
from enum import StrEnum
21+
from enum import Enum
2222
from pathlib import Path
2323
from typing import Dict, List, Optional, Set, Tuple
2424

@@ -27,7 +27,7 @@
2727
from pip._vendor.packaging.utils import canonicalize_name
2828

2929

30-
class OS(StrEnum):
30+
class OS(Enum):
3131
linux = "linux"
3232
osx = "osx"
3333
windows = "windows"
@@ -50,7 +50,7 @@ def from_tag(tag: str) -> "OS":
5050
raise ValueError(f"unknown tag: {tag}")
5151

5252

53-
class Arch(StrEnum):
53+
class Arch(Enum):
5454
x86_64 = "x86_64"
5555
x86_32 = "x86_32"
5656
aarch64 = "aarch64"

0 commit comments

Comments
 (0)