Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: xometry/mypy

Tags

issue-12094-2.1.0

Toggle issue-12094-2.1.0's commit message
Allow Annotated to be wrapped around NotRequired. This allow the foll…

…owing testcase file to work correctly:

```python
from typing import TypedDict, Annotated, NotRequired
from pydantic import Field

class Test(TypedDict):
    a: str
    b: Annotated[str, Field(description="b")]
    c: Annotated[NotRequired[str], Field(description="c")]

t: Test = {
    "a": "testa",
    "b": "testb",
    "c": "testc",
}

t_noc: Test = {
    "a": "testa",
    "b": "testb",
}
```

issue-12094-2.0.0

Toggle issue-12094-2.0.0's commit message
1. Disallow direct item access of NotRequired TypedDict properties

2. When using .get() on a typeddict, the result type will now be a union of the dict[key] type and the type of the default parameter, instead of `object`

Fixes python#12094 - replaces python#12095 which is now bitrotted

issue-12094-1.1.0

Toggle issue-12094-1.1.0's commit message
Merge branch 'issue-12094-error-on-notrequired-item-access' into comb…

…ined-for-xometry

issue-12094-1.0.1

Toggle issue-12094-1.0.1's commit message
Set floating-point mypy version in Xometry local tag to make pydantic…

….mypy happy

issue-12094-1.0.0

Toggle issue-12094-1.0.0's commit message
Rename parameter per review suggest from davidfstr

v0.931

Toggle v0.931's commit message
Bump version to 0.931

v0.930

Toggle v0.930's commit message
Bump version to 0.930

v0.921

Toggle v0.921's commit message
Bump minor version

v0.920

Toggle v0.920's commit message
Bump version

v0.910

Toggle v0.910's commit message
Bump version to 0.910