@@ -239,30 +239,34 @@ def get_pricing_info(self) -> ActorPricingInfo:
239239@docs_group ('Data structures' )
240240@dataclass (frozen = True )
241241class ChargeResult :
242+ """Result of the `ChargingManager.charge` method."""
243+
242244 event_charge_limit_reached : bool
243- """If true, no more events of this type can be charged within the limit"""
245+ """If true, no more events of this type can be charged within the limit. """
244246
245247 charged_count : int
246- """Total amount of charged events - may be lower than the requested amount"""
248+ """Total amount of charged events - may be lower than the requested amount. """
247249
248250 chargeable_within_limit : dict [str , int | None ]
249- """How many events of each known type can still be charged within the limit"""
251+ """How many events of each known type can still be charged within the limit. """
250252
251253
252254@docs_group ('Data structures' )
253255@dataclass
254256class ActorPricingInfo :
257+ """Result of the `ChargingManager.get_pricing_info` method."""
258+
255259 pricing_model : PricingModel | None
256- """The currently effective pricing model"""
260+ """The currently effective pricing model. """
257261
258262 max_total_charge_usd : Decimal
259263 """A configured limit for the total charged amount - if you exceed it, you won't receive more money than this."""
260264
261265 is_pay_per_event : bool
262- """A shortcut - true if the Actor runs with the pay-per-event pricing model"""
266+ """A shortcut - true if the Actor runs with the pay-per-event pricing model. """
263267
264268 per_event_prices : dict [str , Decimal ]
265- """Price of every known event type"""
269+ """Price of every known event type. """
266270
267271
268272@dataclass
0 commit comments