Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ jobs:
path: "htmlcov"

- name: "Make badge"
if: github.ref == 'refs/heads/main'
uses: "schneegans/dynamic-badges-action@v1.4.0"
with:
# GIST_TOKEN is a GitHub personal access token with scope "gist".
Expand Down
5 changes: 4 additions & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@
- Improve the implementation of `cattrs._compat.is_typeddict`. The implementation is now simpler, and relies on fewer private implementation details from `typing` and typing_extensions.
([#384](https://github.com/python-attrs/cattrs/pull/384))
- Improve handling of TypedDicts with forward references.
- Speed up generated _attrs_ and TypedDict structuring functions by changing their signature slightly.
([#388](https://github.com/python-attrs/cattrs/pull/388))

## 23.1.2 (2023-06-02)

- Improve `typing_extensions` version bound. ([#372](https://github.com/python-attrs/cattrs/issues/372))

## 23.1.1 (2023-05-30)

- Add `typing_extensions` as a direct dependency on 3.10. ([#369](https://github.com/python-attrs/cattrs/issues/369) [#370](https://github.com/python-attrs/cattrs/pull/370))
- Add `typing_extensions` as a direct dependency on 3.10.
([#369](https://github.com/python-attrs/cattrs/issues/369) [#370](https://github.com/python-attrs/cattrs/pull/370))

## 23.1.0 (2023-05-30)

Expand Down
2 changes: 1 addition & 1 deletion src/cattrs/gen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ def make_dict_structure_fn(
globs[k] = v

total_lines = [
f"def {fn_name}(o, _, *, {internal_arg_line}):",
f"def {fn_name}(o, _, {internal_arg_line}):",
*lines,
*post_lines,
*instantiation_lines,
Expand Down
2 changes: 1 addition & 1 deletion src/cattrs/gen/typeddicts.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ def make_dict_structure_fn(
globs[k] = v

total_lines = [
f"def {fn_name}(o, _, *, {internal_arg_line}):",
f"def {fn_name}(o, _, {internal_arg_line}):",
*lines,
*post_lines,
" return res",
Expand Down