Skip to content

Commit 25255d5

Browse files
committed
Add missing JSON doc strings to pass CI linter checks
1 parent 0360598 commit 25255d5

File tree

1 file changed

+2
-0
lines changed
  • adafruit_ble/characteristics

1 file changed

+2
-0
lines changed

adafruit_ble/characteristics/json.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@ def __init__(
4242

4343
@staticmethod
4444
def pack(value):
45+
"""Converts a JSON serializable python value into a utf-8 encoded JSON string."""
4546
return json.dumps(value).encode("utf-8")
4647

4748
@staticmethod
4849
def unpack(value):
50+
"""Converts a utf-8 encoded JSON string into a python value."""
4951
return json.loads(str(value, "utf-8"))
5052

5153
def __get__(self, obj, cls=None):

0 commit comments

Comments
 (0)