def init_realms(self, realms):
self.realms = tuple(realm for realm in realms<EOL>if isinstance(realm, realm_abcs.AuthenticatingRealm))<EOL>self.register_cache_clear_listener()<EOL>self.token_realm_resolver = self.init_token_resolution()<EOL>self.init_locking()<EOL>
:type realms: Tuple