Repository navigation
fix: parse actor_pricing_info into Apify API client pricing models - #1172
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1172 +/- ##
==========================================
- Coverage 93.22% 93.05% -0.18%
==========================================
Files 54 54
Lines 3721 3671 -50
==========================================
- Hits 3469 3416 -53
- Misses 252 255 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
vdusek
force-pushed
the
chore/bump-ty-0.0.86
branch
from
October 12, 2026 07:08
45d9a76 to
d40af90
Compare
vdusek
marked this pull request as ready for review
October 12, 2026 07:21
actor_pricing_info into Apify API client pricing models
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Configuration.actor_pricing_infonow holds theapify-clientpricing models (FreeActorPricingInfo,FlatPricePerMonthActorPricingInfo,PricePerDatasetItemActorPricingInfo,PayPerEventActorPricingInfo). The SDK subclasses of these models, along withActorChargeEventandPricingPerEvent, are removed fromapify._charging. They made fields optional that the client requires (apifyMarginPercentage,createdAt,startedAt,trialMinutes,pricePerUnitUsd,unitName,eventDescription), and ty 0.0.86 reports those overrides as invalid.The platform builds
APIFY_ACTOR_PRICING_INFOfrom the run'spricingInfoand removes onlyeventDescriptionfrom each charge event (getPricingInfoJson()in apify-worker). The env var parser fills a missingeventDescriptionwith an empty string, soevent_descriptionis''where it used to beNone. The parser copies a dict passed by the caller before filling it in, and leaves malformed nested values for pydantic to reject. The v4 upgrade guide is updated to match.The PR also bumps ty from 0.0.84 to 0.0.86 and fixes its other errors:
@contextmanager/@asynccontextmanagerfunctions returnGenerator/AsyncGenerator.Configuration.model_configis aSettingsConfigDict, andpydantic-settingsis now a direct dependency.✍️ Drafted by Claude Code