From 1857435e6fa553c9500944066a37701f4db589f0 Mon Sep 17 00:00:00 2001 From: Brandt Bucher Date: Tue, 27 Nov 2018 20:53:05 -0800 Subject: [PATCH] types.CodeType.co_filename isn't Optional. (#2639) --- stdlib/2/types.pyi | 2 +- stdlib/3/types.pyi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/2/types.pyi b/stdlib/2/types.pyi index e4be0ef2f..f18aed290 100644 --- a/stdlib/2/types.pyi +++ b/stdlib/2/types.pyi @@ -53,7 +53,7 @@ class CodeType: co_cellvars = ... # type: Tuple[str, ...] co_code = ... # type: str co_consts = ... # type: Tuple[Any, ...] - co_filename = ... # type: Optional[str] + co_filename = ... # type: str co_firstlineno = ... # type: int co_flags = ... # type: int co_freevars = ... # type: Tuple[str, ...] diff --git a/stdlib/3/types.pyi b/stdlib/3/types.pyi index 890e70b1d..9d121d12d 100644 --- a/stdlib/3/types.pyi +++ b/stdlib/3/types.pyi @@ -47,7 +47,7 @@ class CodeType: co_consts = ... # type: Tuple[Any, ...] co_names = ... # type: Tuple[str, ...] co_varnames = ... # type: Tuple[str, ...] - co_filename = ... # type: Optional[str] + co_filename = ... # type: str co_name = ... # type: str co_firstlineno = ... # type: int co_lnotab = ... # type: bytes