mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-11-04 19:42:50 +08:00
lint fixes
This commit is contained in:
1 parent
5b2aacddba
commit
4dfa363521
14 files changed
+59
-49
No files matched your search
@@ -2,12 +2,14 @@ from typing import List, Tuple, Type, Union
|
||||
|
||||
from django.db.models.base import Model
|
||||
from mypy.plugin import FunctionContext, MethodContext
|
||||
from mypy.types import Instance, Type as MypyType
|
||||
from mypy.types import Instance
|
||||
from mypy.types import Type as MypyType
|
||||
|
||||
from mypy_django_plugin.django.context import DjangoContext
|
||||
|
||||
|
||||
def get_actual_types(ctx: Union[MethodContext, FunctionContext], expected_keys: List[str]) -> List[Tuple[str, MypyType]]:
|
||||
def get_actual_types(ctx: Union[MethodContext, FunctionContext],
|
||||
expected_keys: List[str]) -> List[Tuple[str, MypyType]]:
|
||||
actual_types = []
|
||||
# positionals
|
||||
for pos, (actual_name, actual_type) in enumerate(zip(ctx.arg_names[0], ctx.arg_types[0])):
|
||||
|
||||
Reference in new issue
Block a user