Replace verbose type with StateMap

pull/8292/head
Andrew Morgan 2020-09-11 15:58:00 +01:00
parent 6eae2c18bd
commit 431e3e3ed9
1 changed files with 2 additions and 4 deletions

View File

@ -12,11 +12,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from typing import Dict, Tuple
from synapse.events import EventBase from synapse.events import EventBase
from synapse.events.snapshot import EventContext from synapse.events.snapshot import EventContext
from synapse.types import Requester from synapse.types import Requester, StateMap
class PublicRoomsManager: class PublicRoomsManager:
@ -170,7 +168,7 @@ class ThirdPartyEventRules:
async def _get_state_events_dict_for_room( async def _get_state_events_dict_for_room(
self, room_id: str self, room_id: str
) -> Dict[Tuple[str, str], EventBase]: ) -> StateMap[EventBase]:
"""Given a room ID, return the state events of that room. """Given a room ID, return the state events of that room.
Args: Args: