mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
C++, add type annotations
This commit is contained in:
parent
cc14b8519e
commit
1d44fd12e4
@ -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
Loading…
Reference in New Issue
Block a user