From 4c385ba265e469fbe10a10863d132f0ddb7f2402 Mon Sep 17 00:00:00 2001 From: "Michael J. Sullivan" Date: Thu, 25 Oct 2018 13:23:07 -0700 Subject: [PATCH] Make SyntaxError.offset be optional --- 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 db985272dc61..353585e7db09 100644 --- a/stdlib/2/__builtin__.pyi +++ b/stdlib/2/__builtin__.pyi @@ -1033,7 +1033,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 db985272dc61..353585e7db09 100644 --- a/stdlib/2/builtins.pyi +++ b/stdlib/2/builtins.pyi @@ -1033,7 +1033,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 8b8b34892dbc..695e50bdccaa 100644 --- a/stdlib/3/builtins.pyi +++ b/stdlib/3/builtins.pyi @@ -1026,7 +1026,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): ...