1- from typing import Annotated , Literal
1+ from collections .abc import Sequence
2+ from typing import Annotated , ClassVar , Literal
23
4+ from django .db .models import Model
35from django .utils .translation import gettext_lazy as _
46
57from django_setup_configuration .fields import DjangoModelRef
@@ -76,7 +78,7 @@ class OIDCConfigProviderModel(ConfigurationModel):
7678 endpoint_config : OIDCProviderConfigUnion
7779
7880 class Meta :
79- django_model_refs = {
81+ django_model_refs : ClassVar [ dict [ type [ Model ], Sequence [ str ]]] = {
8082 OIDCProvider : [
8183 "oidc_token_use_basic_auth" ,
8284 "oidc_use_nonce" ,
@@ -217,7 +219,7 @@ class AdminOIDCConfigurationModelItem(ConfigurationModel):
217219 )
218220
219221 class Meta :
220- django_model_refs = {
222+ django_model_refs : ClassVar [ dict [ type [ Model ], Sequence [ str ]]] = {
221223 OIDCClient : [
222224 "oidc_rp_client_id" ,
223225 "oidc_rp_client_secret" ,
@@ -227,7 +229,7 @@ class Meta:
227229 "userinfo_claims_source" ,
228230 ]
229231 }
230- extra_kwargs = {
232+ extra_kwargs : ClassVar [ dict [ str , dict [ str , object ]]] = {
231233 "oidc_rp_client_id" : {"examples" : ["modify-this" ]},
232234 "oidc_rp_client_secret" : {"examples" : ["modify-this" ]},
233235 "oidc_rp_idp_sign_key" : {"examples" : ["modify-this" ]},
0 commit comments