Skip to content

Commit

Permalink
💡 docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
haliphax committed Oct 12, 2023
1 parent 3e9adf1 commit 6ab7efa
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion xthulu/ssh/codecs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""encodings module"""
"""Encodings module"""

# stdlib
from codecs import decode, register
Expand Down
5 changes: 5 additions & 0 deletions xthulu/ssh/console/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""An SSH-integrated Console for use with rich/Textual"""

# typing
from typing import Any, Mapping

Expand All @@ -10,6 +12,9 @@


class XthuluConsole(Console):

"""Wrapper around rich's Console for integrating with SSHContext queues"""

_encoding: str

def __init__(
Expand Down
2 changes: 2 additions & 0 deletions xthulu/ssh/console/app.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Textual application wrapper"""

# stdlib
from asyncio import sleep

Expand Down
2 changes: 2 additions & 0 deletions xthulu/ssh/console/art.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Artwork display"""

# stdlib
from asyncio import QueueEmpty, sleep
from re import Match, sub
Expand Down
6 changes: 6 additions & 0 deletions xthulu/ssh/console/driver.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Console driver"""

# 3rd party
from asyncio import run_coroutine_threadsafe
from codecs import getincrementaldecoder
Expand All @@ -11,7 +13,11 @@


class SSHDriver(LinuxDriver):

"""Textual console driver integrated with SSHContext queues"""

context: SSHContext
"""The current SSH context"""

def __init__(self, app: XthuluApp, **kwargs) -> None:
self.context = app.context
Expand Down
5 changes: 5 additions & 0 deletions xthulu/ssh/console/file_wrapper.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""File wrapper"""

# typing
from typing import Any, IO

Expand All @@ -6,6 +8,9 @@


class FileWrapper(IO[str]):

"""Duck-typed wrapper for providing a file-like object to rich/Textual"""

_encoding: str
_wrapped: SSHWriter[Any]

Expand Down
2 changes: 2 additions & 0 deletions xthulu/ssh/console/input.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Input utilities"""

# stdlib
from asyncio import QueueEmpty, sleep, wait_for

Expand Down

0 comments on commit 6ab7efa

Please sign in to comment.