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 44import six
55import decorator as deco
66
7+ from typing import Optional
8+
79from gssapi .raw .misc import GSSError
810
911
@@ -43,7 +45,7 @@ def getter(self):
4345 return property (getter , setter )
4446
4547
46- def inquire_property (name , doc = None ):
48+ def inquire_property (name : str , doc : Optional [ str ] = None ):
4749 """Creates a property based on an inquire result
4850
4951 This method creates a property that calls the
@@ -59,7 +61,7 @@ def inquire_property(name, doc=None):
5961
6062 def inquire_property (self ):
6163 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 "
6365 "establishment has not yet been started." )
6466 raise AttributeError (msg )
6567
You can’t perform that action at this time.
0 commit comments