Skip to content

Commit 1bfcf30

Browse files
authored
FrameType.f_lineno can be None (#6769)
1 parent bbd8c77 commit 1bfcf30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/@python2/types.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class FrameType:
148148
f_exc_traceback: None
149149
f_globals: Dict[str, Any]
150150
f_lasti: int
151-
f_lineno: int
151+
f_lineno: int | None
152152
f_locals: Dict[str, Any]
153153
f_restricted: bool
154154
f_trace: Callable[[], None]

stdlib/types.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ class FrameType:
353353
f_code: CodeType
354354
f_globals: dict[str, Any]
355355
f_lasti: int
356-
f_lineno: int
356+
f_lineno: int | None
357357
f_locals: dict[str, Any]
358358
f_trace: Callable[[FrameType, str, Any], Any] | None
359359
if sys.version_info >= (3, 7):

0 commit comments

Comments
 (0)