mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-28 18:08:17 +00:00
Use type hinting generics in standard collections (#19046)
aka PEP 585, added in Python 3.9 - https://peps.python.org/pep-0585/ - https://docs.astral.sh/ruff/rules/non-pep585-annotation/
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
# [This file includes modifications made by New Vector Limited]
|
||||
#
|
||||
#
|
||||
from typing import List
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
from parameterized import parameterized
|
||||
@@ -58,7 +57,7 @@ class FederationReaderOpenIDListenerTests(HomeserverTestCase):
|
||||
(["openid"], "auth_fail"),
|
||||
]
|
||||
)
|
||||
def test_openid_listener(self, names: List[str], expectation: str) -> None:
|
||||
def test_openid_listener(self, names: list[str], expectation: str) -> None:
|
||||
"""
|
||||
Test different openid listener configurations.
|
||||
|
||||
@@ -106,7 +105,7 @@ class SynapseHomeserverOpenIDListenerTests(HomeserverTestCase):
|
||||
(["openid"], "auth_fail"),
|
||||
]
|
||||
)
|
||||
def test_openid_listener(self, names: List[str], expectation: str) -> None:
|
||||
def test_openid_listener(self, names: list[str], expectation: str) -> None:
|
||||
"""
|
||||
Test different openid listener configurations.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user