Merge pull request #7330 from jakobandersen/cpp_typing

C++, add type annotations
This commit is contained in:
Jakob Lykke Andersen
2020-03-17 19:45:22 +01:00
committed by GitHub
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