We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74f9928 commit cc4a529Copy full SHA for cc4a529
adafruit_fakerequests.py
@@ -30,16 +30,16 @@
30
class Fake_Requests:
31
"""For faking 'requests' using a local file instead of the network."""
32
33
- def __init__(self, filename):
+ def __init__(self, filename: str) -> None:
34
self._filename = filename
35
36
- def json(self):
+ def json(self) -> str:
37
"""json parsed version for local requests."""
38
with open(self._filename, "r") as file:
39
return json.load(file)
40
41
@property
42
- def text(self):
+ def text(self) -> str:
43
"""raw text version for local requests."""
44
45
return file.read()
0 commit comments