mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-15 08:17:08 +08:00
Fill remaining missing hints with Any & disallow partial hints (#1206)
* Fill remaining missing hints with Any & disallow partial hints * ModelFormatDict -> _ModelFormatDict * Fixes * Add __init__ return hints * Add suppression
This commit is contained in:
@@ -29,7 +29,7 @@ from mypy_django_plugin.transformers.managers import (
|
||||
class ModelClassInitializer:
|
||||
api: SemanticAnalyzer
|
||||
|
||||
def __init__(self, ctx: ClassDefContext, django_context: DjangoContext):
|
||||
def __init__(self, ctx: ClassDefContext, django_context: DjangoContext) -> None:
|
||||
self.api = cast(SemanticAnalyzer, ctx.api)
|
||||
self.model_classdef = ctx.cls
|
||||
self.django_context = django_context
|
||||
|
||||
Reference in New Issue
Block a user