marshmallow-code / marshmallow-code/marshmallow

SchemaOpts misses partial

Open Beginner friendly
#2,834 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
7.2k
Forks
738
Avg merge
1d 23h
Merged PRs (30d)
7

Description

If I try to reproduce the solution in https://github.com/marshmallow-code/marshmallow/issues/2297#issuecomment-2284962125 with `partial` instead of `dateformat`, it fails. I guess this is because the `__init__` at https://github.com/marshmallow-code/marshmallow/blob/dev/src/marshmallow/schema.py#L204 is missing the `partial` keyword.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/marshmallow/schema.py around line 204 and compare the partial case with the dateformat workaround discussed in issue #2297. Reproduce the reported SchemaOpts behavior, then verify that the partial option is handled consistently and add coverage for the reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.