Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More tests #613

Merged
merged 8 commits into from
Dec 26, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Improve typeddict coverage
Tinche committed Dec 25, 2024
commit c1b39c10a796ae56e3f98043f8d89798a16ccd7a
3 changes: 1 addition & 2 deletions tests/typeddicts.py
Original file line number Diff line number Diff line change
@@ -280,8 +280,7 @@ def make_typeddict(
bases_snippet = ", ".join(f"_base{ix}" for ix in range(len(bases)))
for ix, base in enumerate(bases):
globs[f"_base{ix}"] = base
if bases_snippet:
bases_snippet = f", {bases_snippet}"
bases_snippet = f", {bases_snippet}"

lines.append(f"class {cls_name}(TypedDict{bases_snippet}, total={total}):")
for n, t in attrs.items():