Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Moosems committed Jul 29, 2024
1 parent 893f45d commit 880d56f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion collegamento/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
FileRequest,
FileServer,
)

from .simple_client_server import ( # noqa: F401, E402
USER_FUNCTION,
Notification,
Expand Down
8 changes: 5 additions & 3 deletions collegamento/files_variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

from .simple_client_server import (
USER_FUNCTION,
SimpleClient,
Notification,
Request,
SimpleClient,
SimpleServer,
)

Expand All @@ -24,9 +24,10 @@ class FileNotification(Notification):

class FileClient(SimpleClient):
"""File handling variant of SImpleClient. Extra methods:
- FileClient.update_file()
- FileClient.remove_file()
- FileClient.update_file()
- FileClient.remove_file()
"""

def __init__(
self, commands: dict[str, USER_FUNCTION], id_max: int = 15_000
) -> None:
Expand Down Expand Up @@ -88,6 +89,7 @@ def remove_file(self, file: str) -> None:

class FileServer(SimpleServer):
"""File handling variant of SimpleServer"""

def __init__(
self,
commands: dict[str, USER_FUNCTION],
Expand Down
1 change: 1 addition & 0 deletions docs/source/examples/simple_example.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Simple Example
context.kill_IPC()
if __name__ == "__main__":
main()
Expand Down
1 change: 1 addition & 0 deletions examples/simple_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ def main():

context.kill_IPC()


if __name__ == "__main__":
main()

0 comments on commit 880d56f

Please sign in to comment.