mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
Enable ruff S113 rule (#11375)
* Enable ruff S113 rule * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -14,11 +14,11 @@ API_ENDPOINT_URL = "https://zenquotes.io/api"
|
||||
|
||||
|
||||
def quote_of_the_day() -> list:
|
||||
return requests.get(API_ENDPOINT_URL + "/today").json()
|
||||
return requests.get(API_ENDPOINT_URL + "/today", timeout=10).json()
|
||||
|
||||
|
||||
def random_quotes() -> list:
|
||||
return requests.get(API_ENDPOINT_URL + "/random").json()
|
||||
return requests.get(API_ENDPOINT_URL + "/random", timeout=10).json()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Reference in New Issue
Block a user