@@ -467,7 +467,7 @@ def getsection(self, section: str) -> Optional[Dict[str, Union[str, int, float,
467467 if (section not in self ._sections and section not in self .airflow_defaults ._sections ): # type: ignore
468468 return None
469469
470- _section = copy .deepcopy (self .airflow_defaults ._sections [section ]) # type: ignore
470+ _section = copy .deepcopy (self .airflow_defaults ._sections [section ])
471471
472472 if section in self ._sections : # type: ignore
473473 _section .update (copy .deepcopy (self ._sections [section ])) # type: ignore
@@ -481,7 +481,7 @@ def getsection(self, section: str) -> Optional[Dict[str, Union[str, int, float,
481481 key = key .lower ()
482482 _section [key ] = self ._get_env_var_option (section , key )
483483
484- for key , val in _section .items (): # type: ignore
484+ for key , val in _section .items ():
485485 try :
486486 val = int (val )
487487 except ValueError :
@@ -499,13 +499,13 @@ def write(self, fp, space_around_delimiters=True):
499499 # This is based on the configparser.RawConfigParser.write method code to add support for
500500 # reading options from environment variables.
501501 if space_around_delimiters :
502- d = " {} " .format (self ._delimiters [0 ]) # type: ignore
502+ d = " {} " .format (self ._delimiters [0 ])
503503 else :
504- d = self ._delimiters [0 ] # type: ignore
504+ d = self ._delimiters [0 ]
505505 if self ._defaults :
506- self ._write_section (fp , self .default_section , self ._defaults .items (), d ) # type: ignore
506+ self ._write_section (fp , self .default_section , self ._defaults .items (), d )
507507 for section in self ._sections :
508- self ._write_section (fp , section , self .getsection (section ).items (), d ) # type: ignore
508+ self ._write_section (fp , section , self .getsection (section ).items (), d )
509509
510510 def as_dict (
511511 self , display_source = False , display_sensitive = False , raw = False ,
0 commit comments