We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fb3045 commit 5a0f060Copy full SHA for 5a0f060
social_core/backends/email.py
@@ -1,4 +1,3 @@
1
-# noqa: A005
2
"""
3
Legacy Email backend, docs at:
4
https://python-social-auth.readthedocs.io/en/latest/backends/email.html
social_core/tests/models.py
@@ -4,6 +4,8 @@
import base64
5
from typing import TypeVar
6
7
+from typing_extensions import Self
8
+
9
from ..storage import (
10
AssociationMixin,
11
BaseStorage,
@@ -23,7 +25,7 @@ def next_id(cls):
23
25
return cls.NEXT_ID - 1
24
26
27
@classmethod
- def get(cls: type[ModelT], key) -> ModelT | None:
28
+ def get(cls, key) -> Self | None:
29
return cls.cache.get(key)
30
31
0 commit comments