Skip to content

Commit

Permalink
Merge pull request #8794 from tk0miya/refactor_linkcheck3
Browse files Browse the repository at this point in the history
refactor: linkcheck: Update type annotations
  • Loading branch information
tk0miya authored Jan 31, 2021
2 parents 621379e + 6701628 commit 434cc60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sphinx/builders/linkcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def init(self) -> None:
self.workers.append(thread)

@property
def good(self):
def good(self) -> Set[str]:
warnings.warn(
"%s.%s is deprecated." % (self.__class__.__name__, "good"),
RemovedInSphinx50Warning,
Expand All @@ -139,7 +139,7 @@ def good(self):
return self._good

@property
def broken(self):
def broken(self) -> Dict[str, str]:
warnings.warn(
"%s.%s is deprecated." % (self.__class__.__name__, "broken"),
RemovedInSphinx50Warning,
Expand All @@ -148,7 +148,7 @@ def broken(self):
return self._broken

@property
def redirected(self):
def redirected(self) -> Dict[str, Tuple[str, int]]:
warnings.warn(
"%s.%s is deprecated." % (self.__class__.__name__, "redirected"),
RemovedInSphinx50Warning,
Expand Down

0 comments on commit 434cc60

Please sign in to comment.