Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cc4a529

Browse files
committedAug 18, 2022
correct Missing Type Annotations #6
1 parent 74f9928 commit cc4a529

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎adafruit_fakerequests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@
3030
class Fake_Requests:
3131
"""For faking 'requests' using a local file instead of the network."""
3232

33-
def __init__(self, filename):
33+
def __init__(self, filename: str) -> None:
3434
self._filename = filename
3535

36-
def json(self):
36+
def json(self) -> str:
3737
"""json parsed version for local requests."""
3838
with open(self._filename, "r") as file:
3939
return json.load(file)
4040

4141
@property
42-
def text(self):
42+
def text(self) -> str:
4343
"""raw text version for local requests."""
4444
with open(self._filename, "r") as file:
4545
return file.read()

0 commit comments

Comments
 (0)
Please sign in to comment.