mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-19 18:31:15 +08:00
initial commit
This commit is contained in:
41
django/db/migrations/writer.pyi
Normal file
41
django/db/migrations/writer.pyi
Normal file
@@ -0,0 +1,41 @@
|
||||
from django.db.migrations.migration import Migration
|
||||
from django.db.migrations.operations.base import Operation
|
||||
from typing import (
|
||||
Any,
|
||||
Set,
|
||||
Tuple,
|
||||
Type,
|
||||
Union,
|
||||
)
|
||||
|
||||
|
||||
class MigrationWriter:
|
||||
def __init__(self, migration: Migration) -> None: ...
|
||||
def as_string(self) -> str: ...
|
||||
@property
|
||||
def basedir(self) -> str: ...
|
||||
@property
|
||||
def filename(self) -> str: ...
|
||||
@property
|
||||
def path(self) -> str: ...
|
||||
@classmethod
|
||||
def serialize(cls, value: Any) -> Union[Tuple[str, Set[Any]], Tuple[str, Set[str]]]: ...
|
||||
|
||||
|
||||
class OperationWriter:
|
||||
def __init__(self, operation: Operation, indentation: int = ...) -> None: ...
|
||||
def feed(self, line: str) -> None: ...
|
||||
def indent(self) -> None: ...
|
||||
def render(self) -> str: ...
|
||||
def serialize(self) -> Union[Tuple[str, Set[Any]], Tuple[str, Set[str]]]: ...
|
||||
def unindent(self) -> None: ...
|
||||
|
||||
|
||||
class SettingsReference:
|
||||
def __init__(self, value: str, setting_name: str) -> None: ...
|
||||
@staticmethod
|
||||
def __new__(
|
||||
self: Type[SettingsReference],
|
||||
value: str,
|
||||
setting_name: str
|
||||
) -> SettingsReference: ...
|
||||
Reference in New Issue
Block a user