Skip to content

Commit b70d887

Browse files
committed
Ruff format
1 parent 5eec331 commit b70d887

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_pydantic.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
# ------------------------------------------------------------------------------
2727

28+
2829
class Argument(BaseModel):
2930
name: str
3031
value: int
@@ -46,7 +47,7 @@ def handler(arg):
4647
response="{} answered {}".format(arg.name, arg.value),
4748
value=arg.value,
4849
universal_answer=arg.value == 42,
49-
argument=arg
50+
argument=arg,
5051
)
5152

5253

@@ -61,7 +62,7 @@ class PydanticTests(unittest.TestCase):
6162
"""
6263

6364
def test_all_pydantic(self):
64-
""" Test with valid data """
65+
"""Test with valid data"""
6566
# Prepare the server
6667
srv = SimpleJSONRPCServer((HOST, 0))
6768
srv.register_function(handler, "test")
@@ -99,7 +100,7 @@ def test_invalid(self):
99100
"""
100101
Test Pydantic when the client uses an invalid value
101102
"""
102-
# Prepare the server
103+
# Prepare the server
103104
srv = SimpleJSONRPCServer((HOST, 0))
104105
srv.register_function(handler, "test")
105106

0 commit comments

Comments
 (0)