Skip to content

Commit 3b87475

Browse files
committed
Missing docstrings and periods
1 parent ebc1687 commit 3b87475

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/apify/_charging.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,30 +239,34 @@ def get_pricing_info(self) -> ActorPricingInfo:
239239
@docs_group('Data structures')
240240
@dataclass(frozen=True)
241241
class 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
254256
class 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

Comments
 (0)