C++, add type annotations

This commit is contained in:
Jakob Lykke Andersen 2020-03-17 17:57:11 +01:00
parent cc14b8519e
commit 1d44fd12e4
2 changed files with 1744 additions and 1573 deletions

View File

@ -79,7 +79,7 @@ _string_re = re.compile(r"[LuU8]?('([^'\\]*(?:\\.[^'\\]*)*)'"
class _DuplicateSymbolError(Exception):
def __init__(self, symbol: "Symbol", declaration: Any) -> None:
def __init__(self, symbol: "Symbol", declaration: "ASTDeclaration") -> None:
assert symbol
assert declaration
self.symbol = symbol

File diff suppressed because it is too large Load Diff