Skip to content
Snippets Groups Projects
Unverified Commit 2c7f5e74 authored by reivilibre's avatar reivilibre Committed by GitHub
Browse files

Fix a type annotation in `test_account_data.py` and remove it from the Mypy...

Fix a type annotation in `test_account_data.py` and remove it from the Mypy exclusion list. (#11657)

Co-authored-by: default avatarPatrick Cloke <clokep@users.noreply.github.com>
parent f82d38ed
No related branches found
No related tags found
No related merge requests found
Add missing type hints to storage classes.
\ No newline at end of file
......@@ -100,7 +100,6 @@ exclude = (?x)
|tests/server.py
|tests/server_notices/test_resource_limits_server_notices.py
|tests/state/test_v2.py
|tests/storage/test_account_data.py
|tests/storage/test_background_update.py
|tests/storage/test_base.py
|tests/storage/test_client_ips.py
......
......@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from typing import Iterable, Set
from typing import Iterable, Optional, Set
from synapse.api.constants import AccountDataTypes
......@@ -25,7 +25,7 @@ class IgnoredUsersTestCase(unittest.HomeserverTestCase):
self.user = "@user:test"
def _update_ignore_list(
self, *ignored_user_ids: Iterable[str], ignorer_user_id: str = None
self, *ignored_user_ids: Iterable[str], ignorer_user_id: Optional[str] = None
) -> None:
"""Update the account data to block the given users."""
if ignorer_user_id is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment