Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 14, 2024
1 parent f993651 commit a6426f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mause_rpc/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import socket
from dataclasses import dataclass, field
from functools import partial
from typing import Callable, Dict, Optional, TypeVar, overload, NoReturn
from typing import Callable, Dict, NoReturn, Optional, TypeVar, overload

import dill
import pika
Expand Down
6 changes: 2 additions & 4 deletions tests/test_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,9 @@ def test_register() -> None:
server = Server('', MagicMock())

@server.register('hello')
def world() -> None:
...
def world() -> None: ...

@server.register
def help() -> None:
...
def help() -> None: ...

assert set(server._methods) == {'hello', 'help'}

0 comments on commit a6426f5

Please sign in to comment.