Repository navigation
fix(python-sdk): suppress Pydantic shadow warnings for MonitorPageDiff/Snapshot - #3694
Merged
mogery merged 1 commit intoJun 25, 2026
Merged
Conversation
…f and MonitorPageSnapshot The 'json' field in MonitorPageDiff and MonitorPageSnapshot shadows BaseModel.json(), triggering UserWarning on import. Add warning filters matching the existing pattern used for ScrapeFormats and Document. Fixes firecrawl#3643
Member
|
Thanks! |
jerbao
pushed a commit
to jerbao/firecrawl-custom
that referenced
this pull request
Aug 22, 2026
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.
Summary
Fixes #3643 —
MonitorPageSnapshotandMonitorPageDifftriggerUserWarningabout shadowing Pydantic'sBaseModel.json()method.Problem
The
jsonfield inMonitorPageDiff(line 1116) andMonitorPageSnapshot(line 1123) shadows Pydantic's built-injsonattribute, causing aUserWarningon import.Fix
Add
warnings.filterwarnings("ignore", ...)entries for these two classes, matching the existing pattern already used forScrapeFormatsandDocument(lines 34-41 oftypes.py).Changes
apps/python-sdk/firecrawl/v2/types.py: +8 lines (two warning filter entries)Summary by cubic
Suppresses
pydanticUserWarning caused byjsonfield shadowing inMonitorPageDiffandMonitorPageSnapshot. Fixes #3643 by adding ignore filters inapps/python-sdk/firecrawl/v2/types.pyto silence import-time warnings.warnings.filterwarnings("ignore", ...)entries for these models.ScrapeFormatsandDocument; no behavior change.Written for commit db1a7cd. Summary will update on new commits.