You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
has_mapping should include tier or tier should never be None #67
But `tier` is also part of the identity triple. If someone sets
`vis.tier = None` explicitly (bypassing the default `"1k"`),
`has_mapping` still returns True but `client.fetch_all_textures(src, id,
tier=None)` will blow up downstream with an unhelpful error.
Options
(a) Gate in `has_mapping`: add `and self.tier is not None`. Narrows
the bad-state surface.
(b) Make tier required: change the dataclass field to `tier: str`
(no `None`) with a non-None default. A `vis.tier = None` assignment
then fails at assignment time via a `setattr` guard.
(c) Leave as-is: the surface is very narrow (explicit `None` only;
default `"1k"`), and we have `Tier 2/#63` round-trip coverage that
would flush it.
Recommendation
(a) is lowest-cost and most correct. (b) over-constrains for
the rare future where `tier=None` might mean "client default."
Activity
feat: 3.1.2 — milestone 1 audit follow-ups (13 issues closed)