Skip to content

Commit

Permalink
Add return types
Browse files Browse the repository at this point in the history
mypy error cleanup packit#251
  • Loading branch information
shepherdjay committed Oct 9, 2021
1 parent 48570b2 commit 5b545ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ogr/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Reaction(OgrAbstractClass):
def __init__(self, raw_reaction: Any) -> None:
self._raw_reaction = raw_reaction

def __str__(self):
def __str__(self) -> str:
return f"Reaction(raw_reaction={self._raw_reaction})"

def delete(self) -> None:
Expand Down
2 changes: 1 addition & 1 deletion ogr/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def _prepare_url(potential_url: str) -> Optional[ParseResult]:

return urlparse(potential_url)

def _set_hostname_and_scheme(self, parsed_url: ParseResult):
def _set_hostname_and_scheme(self, parsed_url: ParseResult) -> None:
self.hostname = parsed_url.hostname
self.scheme = parsed_url.scheme

Expand Down

0 comments on commit 5b545ad

Please sign in to comment.