From a9bb4a7122df6d9d4a764de52244c6ec75789ead Mon Sep 17 00:00:00 2001 From: Paolo Melchiorre Date: Mon, 5 Dec 2022 18:38:37 +0100 Subject: Add pyupgrade with --py310-plus in pre-commit (#103) --- users/views/settings/interface.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'users/views') diff --git a/users/views/settings/interface.py b/users/views/settings/interface.py index fe8e1e9..5c4f229 100644 --- a/users/views/settings/interface.py +++ b/users/views/settings/interface.py @@ -1,5 +1,5 @@ from functools import partial -from typing import ClassVar, Dict, List +from typing import ClassVar from django import forms from django.core.files import File @@ -21,8 +21,8 @@ class SettingsPage(FormView): options_class = Config.IdentityOptions template_name = "settings/settings.html" section: ClassVar[str] - options: Dict[str, Dict[str, str]] - layout: Dict[str, List[str]] + options: dict[str, dict[str, str]] + layout: dict[str, list[str]] def get_form_class(self): # Create the fields dict from the config object -- cgit v1.2.3