MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / ConvertingDeliveryMapper

Class ConvertingDeliveryMapper

example_code/item_065.py:241–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239
240print("Example 14")
241class ConvertingDeliveryMapper(DescriptorRowMapper):
242 destination = StringField()
243 method = StringField()
244 weight = FloatField()
245
246obj5 = ConvertingDeliveryMapper.from_row(row1)
247assert obj5.destination == "Sydney"

Callers

nothing calls this directly

Calls 2

StringFieldClass · 0.85
FloatFieldClass · 0.85

Tested by

no test coverage detected