mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-13 13:32:11 -04:00
Add some type hints to datastore. (#12255)
This commit is contained in:
parent
4ba55a620f
commit
ac95167d2f
10 changed files with 61 additions and 42 deletions
|
@ -156,7 +156,7 @@ class MediaRepositoryStore(MediaRepositoryBackgroundUpdateStore):
|
|||
hs: "HomeServer",
|
||||
):
|
||||
super().__init__(database, db_conn, hs)
|
||||
self.server_name = hs.hostname
|
||||
self.server_name: str = hs.hostname
|
||||
|
||||
async def get_local_media(self, media_id: str) -> Optional[Dict[str, Any]]:
|
||||
"""Get the metadata for a local piece of media
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue