Skip to content

Commit f890c88

Browse files
committed
correct Missing Type Annotations #6
1 parent cc4a529 commit f890c88

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

adafruit_fakerequests.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323

2424
import json
2525

26+
try:
27+
from typing import Any
28+
except ImportError:
29+
pass
30+
2631
__version__ = "0.0.0+auto.0"
2732
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_FakeRequests.git"
2833

@@ -33,7 +38,7 @@ class Fake_Requests:
3338
def __init__(self, filename: str) -> None:
3439
self._filename = filename
3540

36-
def json(self) -> str:
41+
def json(self) -> Any:
3742
"""json parsed version for local requests."""
3843
with open(self._filename, "r") as file:
3944
return json.load(file)

0 commit comments

Comments
 (0)