26973402aac5d216a66ae3fc8f2d7bcb0fd7ea89
Marco Ricci Add prototype implementation

Marco Ricci authored 4 months ago

src/ssh_agent_client/types.py  1) # SPDX-FileCopyrightText: 2024 Marco Ricci <m@the13thletter.info>
src/ssh_agent_client/types.py  2) #
src/ssh_agent_client/types.py  3) # SPDX-License-Identifier: MIT
src/ssh_agent_client/types.py  4) 
src/ssh_agent_client/types.py  5) """Common typing declarations for the parent module."""
src/ssh_agent_client/types.py  6) 
src/ssh_agent_client/types.py  7) from __future__ import annotations
src/ssh_agent_client/types.py  8) 
src/ssh_agent_client/types.py  9) import enum
src/ssh_agent_client/types.py 10) from typing import NamedTuple
src/ssh_agent_client/types.py 11) 
Marco Ricci Fix style issues with ruff...

Marco Ricci authored 1 month ago

src/ssh_agent_client/types.py 12) __all__ = ('SSH_AGENT', 'SSH_AGENTC', 'KeyCommentPair')
Marco Ricci Add prototype implementation

Marco Ricci authored 4 months ago

src/ssh_agent_client/types.py 13) 
Marco Ricci Reformat everything with ruff

Marco Ricci authored 1 month ago

src/ssh_agent_client/types.py 14) 
Marco Ricci Add prototype implementation

Marco Ricci authored 4 months ago

src/ssh_agent_client/types.py 15) class KeyCommentPair(NamedTuple):
src/ssh_agent_client/types.py 16)     """SSH key plus comment pair.  For typing purposes.
src/ssh_agent_client/types.py 17) 
src/ssh_agent_client/types.py 18)     Attributes:
src/ssh_agent_client/types.py 19)         key: SSH key.
src/ssh_agent_client/types.py 20)         comment: SSH key comment.
src/ssh_agent_client/types.py 21) 
src/ssh_agent_client/types.py 22)     """
Marco Ricci Reformat everything with ruff

Marco Ricci authored 1 month ago

src/ssh_agent_client/types.py 23) 
Marco Ricci Add prototype implementation

Marco Ricci authored 4 months ago

src/ssh_agent_client/types.py 24)     key: bytes | bytearray
src/ssh_agent_client/types.py 25)     comment: bytes | bytearray
src/ssh_agent_client/types.py 26) 
Marco Ricci Reformat everything with ruff

Marco Ricci authored 1 month ago

src/ssh_agent_client/types.py 27) 
Marco Ricci Fix style issues with ruff...

Marco Ricci authored 1 month ago

src/ssh_agent_client/types.py 28) class SSH_AGENTC(enum.Enum):  # noqa: N801
Marco Ricci Add prototype implementation

Marco Ricci authored 4 months ago

src/ssh_agent_client/types.py 29)     """SSH agent protocol numbers: client requests.
src/ssh_agent_client/types.py 30) 
src/ssh_agent_client/types.py 31)     Attributes:
src/ssh_agent_client/types.py 32)         REQUEST_IDENTITIES:
src/ssh_agent_client/types.py 33)             List identities.  Expecting `SSH_AGENT.IDENTITIES_ANSWER`.
src/ssh_agent_client/types.py 34)         SIGN_REQUEST:
src/ssh_agent_client/types.py 35)             Sign data.  Expecting `SSH_AGENT.SIGN_RESPONSE`.
src/ssh_agent_client/types.py 36) 
src/ssh_agent_client/types.py 37)     """
Marco Ricci Reformat everything with ruff

Marco Ricci authored 1 month ago

src/ssh_agent_client/types.py 38) 
Marco Ricci Add prototype implementation

Marco Ricci authored 4 months ago

src/ssh_agent_client/types.py 39)     REQUEST_IDENTITIES: int = 11
src/ssh_agent_client/types.py 40)     SIGN_REQUEST: int = 13
src/ssh_agent_client/types.py 41) 
Marco Ricci Reformat everything with ruff

Marco Ricci authored 1 month ago

src/ssh_agent_client/types.py 42) 
Marco Ricci Fix style issues with ruff...

Marco Ricci authored 1 month ago

src/ssh_agent_client/types.py 43) class SSH_AGENT(enum.Enum):  # noqa: N801
Marco Ricci Add prototype implementation

Marco Ricci authored 4 months ago

src/ssh_agent_client/types.py 44)     """SSH agent protocol numbers: server replies.
src/ssh_agent_client/types.py 45) 
src/ssh_agent_client/types.py 46)     Attributes:
src/ssh_agent_client/types.py 47)         IDENTITIES_ANSWER:
src/ssh_agent_client/types.py 48)             Successful answer to `SSH_AGENTC.REQUEST_IDENTITIES`.
src/ssh_agent_client/types.py 49)         SIGN_RESPONSE:
src/ssh_agent_client/types.py 50)             Successful answer to `SSH_AGENTC.SIGN_REQUEST`.
src/ssh_agent_client/types.py 51) 
src/ssh_agent_client/types.py 52)     """
Marco Ricci Reformat everything with ruff

Marco Ricci authored 1 month ago

src/ssh_agent_client/types.py 53)