Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Type hints for existing code
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Feb 25, 2022
1 parent 06f6535 commit 3fd5e4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/util/check_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class DependencyException(Exception):
@property
def message(self):
def message(self) -> str:
return "\n".join(
[
"Missing Requirements: %s" % (", ".join(self.dependencies),),
Expand All @@ -22,7 +22,7 @@ def message(self):
)

@property
def dependencies(self):
def dependencies(self) -> Iterable[str]:
for i in self.args[0]:
yield '"' + i + '"'

Expand Down

0 comments on commit 3fd5e4d

Please sign in to comment.