Fix generation of deprecations summary (#12202)

This commit is contained in:
Andrey Siunov
2025-11-25 21:15:55 -08:00
committed by GitHub
parent 575bac3172
commit bbd078089e
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
kind: Fixes
body: Fix generation of deprecations summary
time: 2025-11-24T15:57:56.544123-08:00
custom:
Author: asiunov
Issue: "12146"

View File

@@ -271,7 +271,7 @@ def show_deprecations_summary() -> None:
deprecation_event = deprecations[deprecation].event()
summaries.append(
DeprecationSummary(
event_name=deprecation_event.__name__,
event_name=type(deprecation_event).__name__,
event_code=deprecation_event.code(),
occurrences=occurrences,
).to_msg_dict()