Skip to content
This repository was archived by the owner on Aug 11, 2023. It is now read-only.

Commit 476ad20

Browse files
committed
Update
1 parent 2cbc047 commit 476ad20

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lessons/python/exercises/exercise-general-week-08-012--01.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ class Brand(Enum):
3636

3737

3838
class Type(Enum):
39-
UNDEFINED: auto()
40-
COAT: auto()
41-
PANTS: auto()
42-
SKIRT: auto()
43-
SHIRT: auto()
44-
HAT: auto()
39+
UNDEFINED= auto()
40+
COAT= auto()
41+
PANTS= auto()
42+
SKIRT= auto()
43+
SHIRT= auto()
44+
HAT= auto()
4545

4646

4747
class Reflector:
@@ -50,7 +50,7 @@ def __str__(self) -> str:
5050
S = ""
5151
for v in V:
5252
if not v.startswith("__"):
53-
S += v+", "
53+
S += f"{self.__getattribute__(v)}, "
5454
return f"[{S[:-2] if len(S)>=2 else S}]"
5555

5656
def __repr__(self) -> str:

0 commit comments

Comments
 (0)