pyboxbuilder.sleeves.find_sleeve¶
-
pyboxbuilder.sleeves.find_sleeve(brand: str, name: str, grade: str | None =
None) Sleeve | None[source]¶ Return the first sleeve matching
brand,nameandgrade.gradeis optional because a brand usually sells one size under one grade per product line; pass it to disambiguate when a size exists in several thicknesses (e.g. Mayday “Standard” vs “Premium”).Returns
Nonewhen no sleeve matches, so callers can fall back or raise as they see fit.