Skip to content

Commit

Permalink
OembedConfig.oembed_providers: added missing typing (matrix-org#2752)
Browse files Browse the repository at this point in the history
  • Loading branch information
srdjan-catalyst committed Aug 30, 2021
1 parent 1505a02 commit 9087812
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion synapse/config/oembed.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import logging
import re
from os import listdir, path
from typing import Any, Dict
from urllib.parse import urlparse, urlunparse

from ._base import Config
Expand All @@ -25,7 +26,7 @@

class OembedConfig(Config):
section = "oembed"
oembed_providers = {}
oembed_providers : Dict[str, Dict[str, Any]] = {}

def read_config(self, config, **kwargs):
oembed_dir = config.get("oembed_providers_dir")
Expand Down

0 comments on commit 9087812

Please sign in to comment.