From 76fe498aabdb379668974ce9f16f0b03af695413 Mon Sep 17 00:00:00 2001 From: Koleh David Date: Thu, 6 Feb 2025 15:59:37 +1030 Subject: [PATCH] r cleanup types --- gilded_rose.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/gilded_rose.py b/gilded_rose.py index c2f500aa..aff0408f 100755 --- a/gilded_rose.py +++ b/gilded_rose.py @@ -8,18 +8,6 @@ class Item: return "%s, %s, %s" % (self.name, self.sell_in, self.quality) -def is_aged_brie(item: Item) -> None: - return item.name == "Aged Brie" - - -def is_sulfuras(item: Item) -> None: - return item.name == "Sulfuras, Hand of Ragnaros" - - -def is_backstage_pass(item: Item) -> None: - return item.name == "Backstage passes to a TAFKAL80ETC concert" - - def update_item(item: Item): if is_sulfuras(item): return @@ -62,3 +50,15 @@ class GildedRose: def update_quality(self): for item in self.items: update_item(item) + + +def is_aged_brie(item: Item): + return item.name == "Aged Brie" + + +def is_sulfuras(item: Item): + return item.name == "Sulfuras, Hand of Ragnaros" + + +def is_backstage_pass(item: Item): + return item.name == "Backstage passes to a TAFKAL80ETC concert"