mypy: Add type parameter for Set in check_help_documentation.py.

This commit is contained in:
neiljp (Neil Pilgrim)
2017-11-01 21:15:14 -07:00
committed by Tim Abbott
parent a5d1fdf0d6
commit abc0d5e79b

View File

@@ -25,7 +25,7 @@ class HelpDocumentationSpider(BaseDocumentationSpider):
def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
self.static_images = set() # type: Set
self.static_images = set() # type: Set[str]
def _is_external_url(self, url: str) -> bool:
is_external = url.startswith('http') and 'localhost:9981/help' not in url