Infra: Include PEP number in API (#2879)

Fixes https://github.com/python/peps/issues/2878
This commit is contained in:
Hugo van Kemenade 2022-11-10 08:49:09 +02:00 committed by GitHub
parent 11669a5772
commit 5731720068
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -148,9 +148,10 @@ class PEP:
}
@property
def full_details(self) -> dict[str, str]:
def full_details(self) -> dict[str, str | int]:
"""Returns all headers of the PEP as a dict."""
return {
"number": self.number,
"title": self.title,
"authors": ", ".join(author.nick for author in self.authors),
"discussions_to": self.discussions_to,