@@ -94,13 +94,13 @@ class Base(dict):
9494 parameter = {}
9595
9696 def __init__ (
97- self ,
98- conf : Dict ,
99- base_path : str = "" ,
100- file_attributes : Optional [List [str ]] = None ,
101- dir_attributes : Optional [List [str ]] = None ,
102- domain : Optional [str ] = "" ,
103- port : Optional [int ] = 0 ,
97+ self ,
98+ conf : Dict ,
99+ base_path : str = "" ,
100+ file_attributes : Optional [List [str ]] = None ,
101+ dir_attributes : Optional [List [str ]] = None ,
102+ domain : Optional [str ] = "" ,
103+ port : Optional [int ] = 0 ,
104104 ):
105105 dict .__init__ (self )
106106 if file_attributes is None :
@@ -147,14 +147,14 @@ def items(self):
147147 yield key , getattr (self , key )
148148
149149 def extend (
150- self ,
151- conf : Dict ,
152- base_path : str ,
153- domain : str ,
154- port : int ,
155- entity_conf : Optional [List [dict ]] = None ,
156- file_attributes : Optional [List [str ]] = None ,
157- dir_attributes : Optional [List [str ]] = None ,
150+ self ,
151+ conf : Dict ,
152+ base_path : str ,
153+ domain : str ,
154+ port : int ,
155+ entity_conf : Optional [List [dict ]] = None ,
156+ file_attributes : Optional [List [str ]] = None ,
157+ dir_attributes : Optional [List [str ]] = None ,
158158 ):
159159 for econf in entity_conf :
160160 _path = econf .get ("path" )
@@ -195,13 +195,13 @@ def complete_paths(self, conf: Dict, keys: List[str], default_config: Dict, base
195195 setattr (self , key , _val )
196196
197197 def format (
198- self ,
199- conf ,
200- base_path : str ,
201- domain : str ,
202- port : int ,
203- file_attributes : Optional [List [str ]] = None ,
204- dir_attributes : Optional [List [str ]] = None ,
198+ self ,
199+ conf ,
200+ base_path : str ,
201+ domain : str ,
202+ port : int ,
203+ file_attributes : Optional [List [str ]] = None ,
204+ dir_attributes : Optional [List [str ]] = None ,
205205 ) -> Union [Dict , str ]:
206206 """
207207 Formats parts of the configuration. That includes replacing the strings {domain} and {port}
@@ -236,14 +236,14 @@ class Configuration(Base):
236236 uris = ["redirect_uris" , "issuer" , "base_url" , "server_name" ]
237237
238238 def __init__ (
239- self ,
240- conf : Dict ,
241- base_path : str = "" ,
242- entity_conf : Optional [List [dict ]] = None ,
243- file_attributes : Optional [List [str ]] = None ,
244- domain : Optional [str ] = "" ,
245- port : Optional [int ] = 0 ,
246- dir_attributes : Optional [List [str ]] = None ,
239+ self ,
240+ conf : Dict ,
241+ base_path : str = "" ,
242+ entity_conf : Optional [List [dict ]] = None ,
243+ file_attributes : Optional [List [str ]] = None ,
244+ domain : Optional [str ] = "" ,
245+ port : Optional [int ] = 0 ,
246+ dir_attributes : Optional [List [str ]] = None ,
247247 ):
248248 Base .__init__ (
249249 self ,
@@ -290,14 +290,14 @@ def __init__(
290290
291291
292292def create_from_config_file (
293- cls ,
294- filename : str ,
295- base_path : Optional [str ] = "" ,
296- entity_conf : Optional [List [dict ]] = None ,
297- file_attributes : Optional [List [str ]] = None ,
298- domain : Optional [str ] = "" ,
299- port : Optional [int ] = 0 ,
300- dir_attributes : Optional [List [str ]] = None ,
293+ cls ,
294+ filename : str ,
295+ base_path : Optional [str ] = "" ,
296+ entity_conf : Optional [List [dict ]] = None ,
297+ file_attributes : Optional [List [str ]] = None ,
298+ domain : Optional [str ] = "" ,
299+ port : Optional [int ] = 0 ,
300+ dir_attributes : Optional [List [str ]] = None ,
301301):
302302 return cls (
303303 load_config_file (filename ),
0 commit comments