File tree 1 file changed +0
-9
lines changed
1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change 1
1
from typing import Callable , Dict , Optional , Type
2
2
3
3
from mypy .nodes import TypeInfo
4
- from mypy .options import Options
5
4
from mypy .plugin import ClassDefContext , Plugin
6
- from mypy_django_plugin .config import DjangoPluginConfig
7
- from mypy_django_plugin .django .context import DjangoContext
8
5
9
6
from mypy_drf_plugin .lib import fullnames , helpers
10
7
from mypy_drf_plugin .transformers import serializers
@@ -19,12 +16,6 @@ def transform_serializer_class(ctx: ClassDefContext) -> None:
19
16
20
17
21
18
class NewSemanalDRFPlugin (Plugin ):
22
- def __init__ (self , options : Options ) -> None :
23
- super ().__init__ (options )
24
-
25
- django_settings_module = DjangoPluginConfig (options .config_file ).django_settings_module
26
- self .django_context = DjangoContext (django_settings_module )
27
-
28
19
def _get_currently_defined_serializers (self ) -> Dict [str , int ]:
29
20
base_serializer_sym = self .lookup_fully_qualified (fullnames .BASE_SERIALIZER_FULLNAME )
30
21
if base_serializer_sym is not None and isinstance (base_serializer_sym .node , TypeInfo ):
You can’t perform that action at this time.
0 commit comments