From 1bfcf30a50acf844dceeb7d1fcf954c762ac3c9a Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 2 Jan 2022 16:26:58 +0100 Subject: [PATCH] FrameType.f_lineno can be None (#6769) --- stdlib/@python2/types.pyi | 2 +- stdlib/types.pyi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/@python2/types.pyi b/stdlib/@python2/types.pyi index 72b9321a8..0feee4530 100644 --- a/stdlib/@python2/types.pyi +++ b/stdlib/@python2/types.pyi @@ -148,7 +148,7 @@ class FrameType: f_exc_traceback: None f_globals: Dict[str, Any] f_lasti: int - f_lineno: int + f_lineno: int | None f_locals: Dict[str, Any] f_restricted: bool f_trace: Callable[[], None] diff --git a/stdlib/types.pyi b/stdlib/types.pyi index c0fe8bc3e..24c1f9fdb 100644 --- a/stdlib/types.pyi +++ b/stdlib/types.pyi @@ -353,7 +353,7 @@ class FrameType: f_code: CodeType f_globals: dict[str, Any] f_lasti: int - f_lineno: int + f_lineno: int | None f_locals: dict[str, Any] f_trace: Callable[[FrameType, str, Any], Any] | None if sys.version_info >= (3, 7):