We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cb0c75 commit 5e91aa0Copy full SHA for 5e91aa0
gssapi/_utils.py
@@ -4,6 +4,8 @@
4
import six
5
import decorator as deco
6
7
+from typing import Optional
8
+
9
from gssapi.raw.misc import GSSError
10
11
@@ -43,7 +45,7 @@ def getter(self):
43
45
return property(getter, setter)
44
46
47
-def inquire_property(name, doc=None):
48
+def inquire_property(name: str, doc: Optional[str] = None):
49
"""Creates a property based on an inquire result
50
51
This method creates a property that calls the
@@ -59,7 +61,7 @@ def inquire_property(name, doc=None):
59
61
60
62
def inquire_property(self):
63
if not self._started:
- msg = ("Cannot read {0} from a security context whose "
64
+ msg = (f"Cannot read {name} from a security context whose "
65
"establishment has not yet been started.")
66
raise AttributeError(msg)
67
0 commit comments