Skip to content

Commit 13c876c

Browse files
committed
Add non-public method to Sample
1 parent aef9228 commit 13c876c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python_ci/src/sample.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33

44
class Sample:
55
def fetch_json(self, url: str) -> dict:
6-
response = requests.get(url)
6+
response = self._get_response(url)
77
return response.json()
8+
9+
def _get_response(self, url: str) -> requests.models.Response:
10+
return requests.get(url)

0 commit comments

Comments
 (0)