8000 GH-121970: Rewrite the C-API annotations extension by AA-Turner · Pull Request #121985 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-121970: Rewrite the C-API annotations extension #121985

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

Merged
merged 9 commits into from
Jul 19, 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
Expand comment
Co-authored-by: Petr Viktorin <encukou@gmail.com>
  • Loading branch information
AA-Turner and encukou authored Jul 19, 2024
commit 947bcf7888bc4ad923164692d2c6829329c44c6c
3 changes: 2 additions & 1 deletion Doc/tools/extensions/c_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ class RefCountEntry:
#: Name of the function.
name: str
#: List of (argument name, type, refcount effect) tuples.
args: list[tuple[str, str, int | None]] = dataclasses.field(default_factory=list)
# (Currently not used. If it was, a dataclass might work better.)
args: list = dataclasses.field(default_factory=list)
#: Return type of the function.
result_type: str = ''
#: Reference count effect for the return value.
Expand Down
Loading
0