From 2df4ee7916145d77ab28781777c496af8b33ff5c Mon Sep 17 00:00:00 2001 From: Vasu Bhatia Date: Sun, 7 Dec 2025 18:13:52 +0000 Subject: [PATCH] refactor: Abstract constant definitions --- python/gilded_rose.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/python/gilded_rose.py b/python/gilded_rose.py index 29b97c7e..aad71caf 100755 --- a/python/gilded_rose.py +++ b/python/gilded_rose.py @@ -1,6 +1,13 @@ """Gilded Rose Refactoring Kata.""" 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: """Manages inventory quality updates for the Gilded Rose inn.