Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pydantic/pydantic
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.10.1
Choose a base ref
...
head repository: pydantic/pydantic
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.10.3
Choose a head ref
  • 14 commits
  • 20 files changed
  • 2 contributors

Commits on Nov 26, 2024

  1. Configuration menu
    Copy the full SHA
    d6fc7fc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7c0ed72 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    869eafd View commit details
    Browse the repository at this point in the history
  4. Fix type hint of Field.default to be compatible with Python 3.8 and…

    … 3.9 (#10972)
    
    For Python < 3.10, we define `EllipsisType = type(Ellipsis)` in
    `_typing_extra`. `EllipsisType` is then used in a type expression
    but pyright raises an error because `EllipsisType` is defined as
    variable.
    
    Instead, we make use of the `ellipsis` builtin, only available
    for type checkers (defined in typeshed) as a compatibility hack.
    Viicos authored and sydney-runkle committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    a9cf39c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    02229a6 View commit details
    Browse the repository at this point in the history
  6. Hide BaseModel.__replace__ definition from type checkers (#10979)

    Because we make use of `@dataclass_transform()`, the method is synthesized by type checkers already. This fixes an issue with mypy and the Pydantic plugin, as the plugin removes the `dataclass_transform` spec from `BaseModel` subclasses, but not for `RootModel` which uses a different metaclass, and led to override issues with the synthesized `__replace__` for root models and the `BaseModel.__replace__` definition.
    Viicos authored and sydney-runkle committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    226cfaf View commit details
    Browse the repository at this point in the history
  7. Prepare for v2.10.2 release (#10982)

    Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
    sydney-runkle and Viicos committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    fe32515 View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2024

  1. Configuration menu
    Copy the full SHA
    10ebcdf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cb962c1 View commit details
    Browse the repository at this point in the history
  3. Use the globals of the function when evaluating the return type for `…

    …PlainSerializer` and `WrapSerializer` functions (#11008)
    Viicos authored and sydney-runkle committed Dec 3, 2024
    Configuration menu
    Copy the full SHA
    b2c4548 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    435a703 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fa69b4c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    68d35bf View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c326748 View commit details
    Browse the repository at this point in the history
Loading