kc0506

Results 9 issues of kc0506

## Change Summary Override `ModelMetaclass.mro` such that indexed generic type can be inserted into `__mro__` of its subclasses. For example: ```py class A(BaseModel, Generic[T]): ... class B(A[T]): ... class C(B[bool]):...

awaiting author revision
relnotes-change

## Change Summary Wrap a `json-or-python` schema for `Hashable` type. This allows `validate_json` to work consistently with validating Python objects. This breaks some existing tests, though. Currently my concern is...

awaiting author revision
relnotes-fix

### Initial Checks - [X] I have searched Google & GitHub for similar requests and couldn't find anything - [X] I have read and followed [the docs](https://docs.pydantic.dev) and still think...

feature request

## Change Summary This is an attempt to #8984. The bug seems to lie in `_core_utils`. Consider the sample code ```py from pydantic import BaseModel from typing import Sequence type...

awaiting author revision
relnotes-fix

## Change Summary This is sort of the revert of #8268. The reason to switch back to `ValidateCallWrapper` is because I found that [supporting `Self` in `validate_call`](https://github.com/kc0506/pydantic/tree/support-validate-call-self) (WIP) can be...

relnotes-fix

## Change Summary The primary change of this PR is to allow code as below to work properly: ```py class A[T](BaseModel): @validate_call(validate_return=True) def f(self, x: T) -> T: return x...

relnotes-fix

### Initial Checks - [X] I have searched Google & GitHub for similar requests and couldn't find anything - [X] I have read and followed [the docs](https://docs.pydantic.dev) and still think...

feature request

I am wondering if there is anyway to deal with Python coroutine in `pydantic_core`. I found [the async-await section of PyO3 docs](https://pyo3.rs/v0.22.2/async-await), but the feature seems not enabled for `pydantic_core`....

I try the example in README: ```py from fastmcp import FastMCP, Image from PIL import Image as PILImage mcp = FastMCP("Demo") @mcp.tool() def fail(): img = Image(data=PILImage.open("image.png").tobytes(), format="png") return img...

bug
documentation