From c4ceae98db9db073d3b636aad0640b707eed3be6 Mon Sep 17 00:00:00 2001 From: James Saryerwinnie Date: Fri, 31 Mar 2017 15:24:42 -0700 Subject: [PATCH] Add filename attr to SyntaxError type (#1126) --- stdlib/2/__builtin__.pyi | 1 + stdlib/3/builtins.pyi | 1 + 2 files changed, 2 insertions(+) diff --git a/stdlib/2/__builtin__.pyi b/stdlib/2/__builtin__.pyi index 195d4b180..fc680ca78 100644 --- a/stdlib/2/__builtin__.pyi +++ b/stdlib/2/__builtin__.pyi @@ -920,6 +920,7 @@ class SyntaxError(StandardError): lineno = ... # type: int offset = ... # type: int text = ... # type: str + filename = ... # type: str class IndentationError(SyntaxError): ... class TabError(IndentationError): ... class SystemError(StandardError): ... diff --git a/stdlib/3/builtins.pyi b/stdlib/3/builtins.pyi index d3254c8d4..490c7f31a 100644 --- a/stdlib/3/builtins.pyi +++ b/stdlib/3/builtins.pyi @@ -956,6 +956,7 @@ class SyntaxError(Exception): lineno = ... # type: int offset = ... # type: int text = ... # type: str + filename = ... # type: str class IndentationError(SyntaxError): ... class TabError(IndentationError): ... class SystemError(Exception): ...