Skip to content

Commit

Permalink
Merge pull request #6935 from tk0miya/mypy-0.761
Browse files Browse the repository at this point in the history
Fix mypy violations (for mypy-0.761) (T/O)
  • Loading branch information
tk0miya committed Dec 21, 2019
2 parents 0b53356 + 56940b0 commit 0cc01a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -47,7 +47,7 @@
'html5lib',
'flake8>=3.5.0',
'flake8-import-order',
'mypy>=0.750',
'mypy>=0.761',
'docutils-stubs',
],
}
Expand Down
2 changes: 1 addition & 1 deletion sphinx/pycode/parser.py
Expand Up @@ -129,7 +129,7 @@ class TokenProcessor:
def __init__(self, buffers: List[str]) -> None:
lines = iter(buffers)
self.buffers = buffers
self.tokens = tokenize.generate_tokens(lambda: next(lines)) # type: ignore
self.tokens = tokenize.generate_tokens(lambda: next(lines))
self.current = None # type: Token
self.previous = None # type: Token

Expand Down

0 comments on commit 0cc01a1

Please sign in to comment.