File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 4
4
import six
5
5
import decorator as deco
6
6
7
+ from typing import Optional
8
+
7
9
from gssapi .raw .misc import GSSError
8
10
9
11
@@ -43,7 +45,7 @@ def getter(self):
43
45
return property (getter , setter )
44
46
45
47
46
- def inquire_property (name , doc = None ):
48
+ def inquire_property (name : str , doc : Optional [ str ] = None ):
47
49
"""Creates a property based on an inquire result
48
50
49
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 ):
61
63
if not self ._started :
62
- msg = ("Cannot read {0 } from a security context whose "
64
+ msg = (f "Cannot read { name } from a security context whose "
63
65
"establishment has not yet been started." )
64
66
raise AttributeError (msg )
65
67
You can’t perform that action at this time.
0 commit comments