def security_definitions(self): security_defs = {} for security_name, security_def in iteritems( self.spec_dict.get('securityDefinitions', {})): security_defs[security_name] = SecurityDefinition( self, security_def) return security_defs
def _security_definitions(self): # type: () -> typing.Dict[typing.Text, SecurityDefinition] return { security_name: SecurityDefinition(self, security_def) for security_name, security_def in iteritems( self.spec_dict.get('securityDefinitions', {})) }