Answer prose round 2: resolvedRef names its two fields, checkCalcFields and refuseTwiceDrawn read on one pass, refuseSingleRead says why a calc's read stands, street_delivery states both rules, and Template.Fake claims nothing about names

This commit is contained in:
2026-10-07 01:18:05 +02:00
committed by Lillem4n
parent 1419673b96
commit ac6158e841
5 changed files with 15 additions and 13 deletions
+3 -2
View File
@@ -135,8 +135,9 @@ class Nearest:
def street_delivery(name, codes):
"""The codes delivered to a street: the digit after the postort's own prefix is 0 or 1 for boxes and 8 for reply mail
outside ONE_POSITION's cities, per docs/research/research-geo-se.md, Postal codes → Structure."""
"""The codes delivered to a street. Outside ONE_POSITION's cities, the digit after the postort's own prefix is 0 or 1
for boxes and 8 for reply mail; inside them, a second digit 0 marks boxes.
Per docs/research/research-geo-se.md, Postal codes → Structure."""
if name in ONE_POSITION:
return [c for c in codes if c[1] != "0"]
largest = collections.Counter(c[:3] for c in codes).most_common(1)[0][1]