Skip to content

Commit 12fa77a

Browse files
author
fraser.todd
committed
black linting
1 parent c9edc65 commit 12fa77a

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

pythonosc/dispatcher.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Maps OSC addresses to handler functions
2-
"""
1+
"""Maps OSC addresses to handler functions"""
32

43
import collections
54
import inspect

pythonosc/osc_bundle_builder.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ def __init__(self, timestamp: int) -> None:
2727
self._timestamp = timestamp
2828
self._contents: List[osc_bundle.OscBundle | osc_message.OscMessage] = []
2929

30-
def add_content(self, content: osc_bundle.OscBundle | osc_message.OscMessage) -> None:
30+
def add_content(
31+
self, content: osc_bundle.OscBundle | osc_message.OscMessage
32+
) -> None:
3133
"""Add a new content to this bundle.
3234
3335
Args:

pythonosc/osc_server.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""OSC Servers that receive UDP packets and invoke handlers accordingly.
2-
"""
1+
"""OSC Servers that receive UDP packets and invoke handlers accordingly."""
32

43
import asyncio
54
import os

pythonosc/test/parsing/test_osc_types.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ def test_get_rgba(self):
8585
b"\x00\x00\x00\x01": (1, 4),
8686
b"\x00\x00\x00\x02": (2, 4),
8787
b"\x00\x00\x00\x03": (3, 4),
88-
b"\xFF\x00\x00\x00": (4278190080, 4),
89-
b"\x00\xFF\x00\x00": (16711680, 4),
90-
b"\x00\x00\xFF\x00": (65280, 4),
91-
b"\x00\x00\x00\xFF": (255, 4),
88+
b"\xff\x00\x00\x00": (4278190080, 4),
89+
b"\x00\xff\x00\x00": (16711680, 4),
90+
b"\x00\x00\xff\x00": (65280, 4),
91+
b"\x00\x00\x00\xff": (255, 4),
9292
b"\x00\x00\x00\x01GARBAGE": (1, 4),
9393
}
9494

@@ -164,7 +164,7 @@ def test_get_timetag(self):
164164
(datetime(1900, 1, 1, 0, 0, 0), 0),
165165
8,
166166
),
167-
b"\x83\xaa\x7E\x80\x0A\x00\xB0\x0C": (
167+
b"\x83\xaa\x7e\x80\x0a\x00\xb0\x0c": (
168168
(datetime(1970, 1, 1, 0, 0, 0), 167817228),
169169
8,
170170
),

0 commit comments

Comments
 (0)