Skip to content

Commit

Permalink
Add type expression to new function
Browse files Browse the repository at this point in the history
  • Loading branch information
benkrikler committed Apr 20, 2019
1 parent f11de13 commit 7c8576d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sphinx/ext/viewcode.py
Expand Up @@ -21,7 +21,7 @@

if False:
# For type annotation
from typing import Any, Dict, Iterable, Iterator, Set, Tuple # NOQA
from typing import Any, Dict, Iterable, Iterator, Set, Tuple, List # NOQA
from sphinx.application import Sphinx # NOQA
from sphinx.config import Config # NOQA
from sphinx.environment import BuildEnvironment # NOQA
Expand Down Expand Up @@ -142,6 +142,7 @@ def missing_reference(app, env, node, contnode):


def split_code_lines(lines):
# type: (List[str]) -> Tuple[List[str], List[str], List[str]]
end_header_string = 'td class="code">'
header = []
for i, line in enumerate(lines):
Expand Down

0 comments on commit 7c8576d

Please sign in to comment.