mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 14:34:56 -04:00
Fix a type annotation in test_account_data.py
and remove it from the Mypy exclusion list. (#11657)
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
This commit is contained in:
parent
f82d38ed2e
commit
2c7f5e74e5
3 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue