-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-import-paths.vim
More file actions
156 lines (156 loc) · 5.96 KB
/
python-import-paths.vim
File metadata and controls
156 lines (156 loc) · 5.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
let g:python_import_dict = {
\ 'AnonymousUser': 'from django.contrib.auth.models',
\ 'Any': 'from typing',
\ 'APIView': 'from rest_framework.views',
\ 'AppConfig': 'from django.apps',
\ 'apps': 'from django.apps',
\ 'argparse': 'import argparse',
\ 'ArrayAgg': 'from django.contrib.postgres.aggregates',
\ 'asyncio': 'import asyncio',
\ 'auto': 'from enum',
\ 'Avg': 'from django.db.models',
\ 'base64': 'import base64',
\ 'BaseManager': 'from django.db.models.manager',
\ 'BasePermission': 'from rest_framework.permissions',
\ 'BooleanField': 'from django.db.models',
\ 'BytesIO': 'from io',
\ 'cache': 'from django.core.cache',
\ 'cached_property': 'from django.utils.functional',
\ 'call_command': 'from django.core.management',
\ 'Callable': 'from typing',
\ 'Case': 'from django.db.models',
\ 'Cast': 'from django.db.models.functions',
\ 'cast': 'from typing',
\ 'CharField': 'from django.db.models',
\ 'ClassVar': 'from typing',
\ 'Coalesce': 'from django.db.models.functions',
\ 'Collection': 'from typing',
\ 'CombinedExpression': 'from django.db.models.expressions',
\ 'Concat': 'from django.db.models.functions',
\ 'connection': 'from django.db',
\ 'ContentType': 'from django.contrib.contenttypes.models',
\ 'Count': 'from django.db.models',
\ 'csv': 'import csv',
\ 'D': 'from decimal import Decimal as',
\ 'datetime': 'import datetime',
\ 'Decimal': 'from decimal',
\ 'decimal': 'import decimal',
\ 'deepcopy': 'from copy',
\ 'Dict': 'from typing',
\ 'Enum': 'from enum',
\ 'Exists': 'from django.db.models',
\ 'F': 'from django.db.models',
\ 'FieldDoesNotExist': 'from django.core.exceptions',
\ 'FloatField': 'from django.db.models',
\ 'force_text': 'from django.utils.encoding',
\ 'freeze_time': 'from freezegun',
\ 'freezegun': 'import freezegun',
\ 'frozendict': 'from frozendict',
\ 'Func': 'from django.db.models',
\ 'functools': 'import functools',
\ 'Generator': 'from typing',
\ 'Generic': 'from typing',
\ 'GenericAPIView': 'from rest_framework.generics',
\ 'GenericForeignKey': 'from django.contrib.contenttypes.fields',
\ 'generics': 'from rest_framework',
\ 'get_object_or_404': 'from django.shortcuts',
\ 'HStoreField': 'from django.contrib.postgres.fields',
\ 'Http404': 'from django.http',
\ 'HttpRequest': 'from django.http',
\ 'HttpResponse': 'from django.http',
\ 'HttpResponseRedirect': 'from django.http',
\ 'IntegerField': 'from django.db.models',
\ 'io': 'import io',
\ 'IsAuthenticated': 'from rest_framework.permissions',
\ 'Iterable': 'from collections.abc',
\ 'Iterator': 'from collections.abc',
\ 'itertools': 'import itertools',
\ 'json': 'import json',
\ 'JSONField': 'from django.contrib.postgres.fields',
\ 'JSONObject': 'from django.db.models.functions',
\ 'JsonResponse': 'from django.http',
\ 'Literal': 'from typing',
\ 'logging': 'import logging',
\ 'login_required': 'from django.contrib.auth.decorators',
\ 'Manager': 'from django.db.models',
\ 'Mapping': 'from collections.abc',
\ 'mark_safe': 'from django.utils.safestring',
\ 'Max': 'from django.db.models',
\ 'Min': 'from django.db.models',
\ 'mock': 'from unittest',
\ 'MockerFixture': 'from pytest_mock',
\ 'Model': 'from django.db.models',
\ 'namedtuple': 'from collections',
\ 'NamedTuple': 'from typing',
\ 'NoReturn': 'from typing',
\ 'ObjectDoesNotExist': 'from django.core.exceptions',
\ 'openpyxl': 'import openpyxl',
\ 'operator': 'import operator',
\ 'Optional': 'from typing',
\ 'os': 'import os',
\ 'OuterRef': 'from django.db.models',
\ 'overload': 'from typing',
\ 'parse_datetime': 'from django.utils.dateparse',
\ 'parse_qs': 'from urllib.parse',
\ 'parse_qsl': 'from urllib.parse',
\ 'partial': 'from functools',
\ 'PermissionDenied': 'from rest_framework.exceptions',
\ 'permissions': 'from rest_framework',
\ 'post_save': 'from django.db.models.signals',
\ 'pre_save': 'from django.db.models.signals',
\ 'prefetch_related_objects': 'from django.db.models',
\ 'Prefetch': 'from django.db.models',
\ 'ProgrammingError': 'from django.db.utils',
\ 'Protocol': 'from typing',
\ 'pytest': 'import pytest',
\ 'pytz': 'import pytz',
\ 'Q': 'from django.db.models',
\ 'QuerySet': 'from django.db.models',
\ 'quote': 'from urllib.parse',
\ 'random': 'import random',
\ 'RawSQL': 'from django.db.models.expressions',
\ 're': 'import re',
\ 'receiver': 'from django.dispatch',
\ 'RedirectResponse': 'from starlette.responses',
\ 'reduce': 'from functools',
\ 'RegexValidator': 'from django.core.validators',
\ 'render': 'from django.shortcuts',
\ 'Response': 'from rest_framework.response',
\ 'SearchVectorField': 'from django.contrib.postgres.search',
\ 'Sequence': 'from collections.abc',
\ 'settings': 'from django.conf',
\ 'shutil': 'import shutil',
\ 'six': 'import six',
\ 'status': 'from rest_framework',
\ 'StrEnum': 'from enum',
\ 'Subquery': 'from django.db.models',
\ 'sys': 'import sys',
\ 'tempfile': 'import tempfile',
\ 'TestCase': 'from unittest',
\ 'TestClient': 'from fastapi.testclient',
\ 'textwrap': 'import textwrap',
\ 'time': 'import time',
\ 'timezone': 'from django.utils',
\ 'transaction': 'from django.db',
\ 'Trim': 'from django.db.models.functions',
\ 'TYPE_CHECKING': 'from typing',
\ 'Type': 'from typing',
\ 'TypeAlias': 'from typing_extensions',
\ 'TypedDict': 'from typing',
\ 'TypeVar': 'from typing',
\ 'typing': 'import typing',
\ 'Union': 'from typing',
\ 'unittest': 'import unittest',
\ 'url_reverse': 'from django.urls import reverse as',
\ 'urlencode': 'from urllib.parse',
\ 'urlparse': 'from urllib.parse',
\ 'urlunparse': 'from urllib.parse',
\ 'UUID': 'from uuid',
\ 'uuid': 'import uuid',
\ 'uuid4': 'from uuid import uuid4',
\ 'ValidationError': 'from django.core.exceptions',
\ 'Value': 'from django.db.models',
\ 'When': 'from django.db.models',
\ 'Worksheet': 'from openpyxl.worksheet.worksheet',
\ 'zipfile': 'import zipfile',
\}