refactor: Abstract constant definitions

This commit is contained in:
Vasu Bhatia 2025-12-07 18:13:52 +00:00
parent 4f45b9ee35
commit 2df4ee7916

View File

@ -1,6 +1,13 @@
"""Gilded Rose Refactoring Kata.""" """Gilded Rose Refactoring Kata."""
from __future__ import annotations from __future__ import annotations
AGED_BRIE: str = "Aged Brie"
BACKSTAGE_PASSES: str = "Backstage passes"
CONJURED: str = "Conjured"
MAX_QUALITY: int = 50
MIN_QUALITY: int = 0
SULFURAS: str = "Sulfuras, Hand of Ragnaros"
SULFURAS_QUALITY: int = 80
class GildedRose: class GildedRose:
"""Manages inventory quality updates for the Gilded Rose inn. """Manages inventory quality updates for the Gilded Rose inn.