mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-07 20:54:29 +08:00
lint
This commit is contained in:
@@ -4,7 +4,7 @@ from django.db import models
|
||||
from django.db.models.base import Model
|
||||
from django.db.models.query import QuerySet
|
||||
|
||||
class ContentTypeManager(models.Manager['ContentType']):
|
||||
class ContentTypeManager(models.Manager["ContentType"]):
|
||||
def get_by_natural_key(self, app_label: str, model: str) -> ContentType: ...
|
||||
def get_for_model(self, model: Union[Type[Model], Model], for_concrete_model: bool = ...) -> ContentType: ...
|
||||
def get_for_models(self, *models: Any, for_concrete_models: bool = ...) -> Dict[Type[Model], ContentType]: ...
|
||||
|
||||
@@ -45,7 +45,6 @@ class Origin:
|
||||
@property
|
||||
def loader_name(self) -> Optional[str]: ...
|
||||
|
||||
|
||||
class Template:
|
||||
name: Optional[str] = ...
|
||||
origin: Origin = ...
|
||||
|
||||
Reference in New Issue
Block a user