From 50a6004ddd642a73520b780899740c4e660b7762 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Sun, 16 Apr 2023 16:17:23 -0400 Subject: Fix inaccurate PKey.__init__ docstring: data is bytes, not str This seems likely a missed spot from the Python 3 conversion or the Python 2 drop. --- paramiko/pkey.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paramiko/pkey.py b/paramiko/pkey.py index 69117bc1..c0844407 100644 --- a/paramiko/pkey.py +++ b/paramiko/pkey.py @@ -101,8 +101,8 @@ class PKey: :param .Message msg: an optional SSH `.Message` containing a public key of this type. - :param str data: an optional string containing a public key - of this type + :param bytes data: + optional, the bytes of a public key of this type :raises: `.SSHException` -- if a key cannot be created from the ``data`` or ``msg`` given, or -- cgit v1.2.1