From ffeede30d2f3a5874b1990647691b4e6b0296e15 Mon Sep 17 00:00:00 2001 From: "Michael J. Sullivan" Date: Thu, 25 Oct 2018 13:54:55 -0700 Subject: [PATCH] Make SyntaxError.offset be optional (#2557) --- stdlib/2/__builtin__.pyi | 2 +- stdlib/2/builtins.pyi | 2 +- stdlib/3/builtins.pyi | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/2/__builtin__.pyi b/stdlib/2/__builtin__.pyi index ba69027ca..a29829838 100644 --- a/stdlib/2/__builtin__.pyi +++ b/stdlib/2/__builtin__.pyi @@ -1030,7 +1030,7 @@ class ReferenceError(StandardError): ... class SyntaxError(StandardError): msg = ... # type: str lineno = ... # type: int - offset = ... # type: int + offset = ... # type: Optional[int] text = ... # type: str filename = ... # type: str class IndentationError(SyntaxError): ... diff --git a/stdlib/2/builtins.pyi b/stdlib/2/builtins.pyi index ba69027ca..a29829838 100644 --- a/stdlib/2/builtins.pyi +++ b/stdlib/2/builtins.pyi @@ -1030,7 +1030,7 @@ class ReferenceError(StandardError): ... class SyntaxError(StandardError): msg = ... # type: str lineno = ... # type: int - offset = ... # type: int + offset = ... # type: Optional[int] text = ... # type: str filename = ... # type: str class IndentationError(SyntaxError): ... diff --git a/stdlib/3/builtins.pyi b/stdlib/3/builtins.pyi index 97f80a85a..d3f56b4db 100644 --- a/stdlib/3/builtins.pyi +++ b/stdlib/3/builtins.pyi @@ -1024,7 +1024,7 @@ if sys.version_info >= (3, 5): class SyntaxError(Exception): msg = ... # type: str lineno = ... # type: int - offset = ... # type: int + offset = ... # type: Optional[int] text = ... # type: str filename = ... # type: str class IndentationError(SyntaxError): ...