8000 gh-112205: Support docstring for `@getter` by corona10 · Pull Request #113160 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-112205: Support docstring for @getter #113160

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 12 commits into from
Dec 20, 2023
Prev Previous commit
Next Next commit
nit
  • Loading branch information
corona10 committed Dec 19, 2023
commit 18d178672d683da3a86add397ae695413dd57f78
2 changes: 1 addition & 1 deletion Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -6453,7 +6453,7 @@ def format_docstring(self) -> str:
f = self.function
k = f.kind
if (k.new_or_init or k in {GETTER, SETTER}) and not f.docstring:
# If the following methods have a empty docstring,
# If following cases have a empty docstring,
# Do not render a docstring at all, no signature, nothing.
# 1. __init__ / __new__
# 2. @getter / @setter properties
Expand Down
0