Skip to content

Commit 0439a19

Browse files
committed
Explain: Fix missing type annotations on C++ support routines.
1 parent 6608d07 commit 0439a19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

explain/explain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def wrapped(self, *args: Any, **kwargs: Any):
223223
return wrapped
224224

225225

226-
def cpp_get_uncaught_exceptions():
226+
def cpp_get_uncaught_exceptions() -> int:
227227
"""
228228
Return the current number of uncaught exceptions on the current thread.
229229
"""
@@ -234,7 +234,7 @@ def cpp_get_uncaught_exceptions():
234234
return int(gdb.parse_and_eval("__cxa_get_globals()->uncaughtExceptions"))
235235

236236

237-
def cpp_exception_state_present():
237+
def cpp_exception_state_present() -> bool:
238238
"""
239239
Do we have access to libstdc++ exception handling state in this program?
240240
"""

0 commit comments

Comments
 (0)