Skip to content

Commit

Permalink
fix: linters
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoreira-valory committed Oct 6, 2023
1 parent b8f4902 commit 59f0e07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_docs/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def read_file(filepath: str) -> str:
return file_str


def read_file_from_repository(url):
def read_file_from_repository(url: str) -> str:
"""Loads the latest release version of a file into a string"""
match = re.match(r"https://github.com/([^/]+)/([^/]+)/blob/([^/]+)/(.+)", url)
if not match:
Expand All @@ -109,7 +109,7 @@ def read_file_from_repository(url):
)


def read_file_from_url(url):
def read_file_from_url(url: str) -> str:
"""Loads a file into a string"""
response = requests.get(url)
if response.status_code == 200:
Expand Down

0 comments on commit 59f0e07

Please sign in to comment.