mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-20 19:01:16 +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:
@@ -14,7 +14,7 @@ from .validation import DatabaseValidation
|
||||
def wrap_oracle_errors() -> Generator[None, None, None]: ...
|
||||
|
||||
class _UninitializedOperatorsDescriptor:
|
||||
def __get__(self, instance: Any, cls: Optional[Any] = ...): ...
|
||||
def __get__(self, instance: Any, cls: Optional[Any] = ...) -> Any: ...
|
||||
|
||||
class DatabaseWrapper(BaseDatabaseWrapper):
|
||||
client: DatabaseClient
|
||||
@@ -40,17 +40,17 @@ class DatabaseWrapper(BaseDatabaseWrapper):
|
||||
Database: Any = ...
|
||||
SchemaEditorClass: Any = ...
|
||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||
def get_connection_params(self): ...
|
||||
def get_new_connection(self, conn_params: Any): ...
|
||||
def get_connection_params(self) -> Any: ...
|
||||
def get_new_connection(self, conn_params: Any) -> Any: ...
|
||||
pattern_ops: Any = ...
|
||||
def init_connection_state(self) -> None: ...
|
||||
def create_cursor(self, name: Optional[Any] = ...): ...
|
||||
def create_cursor(self, name: Optional[Any] = ...) -> Any: ...
|
||||
def check_constraints(self, table_names: Optional[Any] = ...) -> None: ...
|
||||
def is_usable(self): ...
|
||||
def is_usable(self) -> Any: ...
|
||||
@property
|
||||
def cx_oracle_version(self): ...
|
||||
def cx_oracle_version(self) -> Any: ...
|
||||
@property
|
||||
def oracle_version(self): ...
|
||||
def oracle_version(self) -> Any: ...
|
||||
|
||||
class OracleParam:
|
||||
force_bytes: Any = ...
|
||||
@@ -60,18 +60,18 @@ class OracleParam:
|
||||
class VariableWrapper:
|
||||
var: Any = ...
|
||||
def __init__(self, var: Any) -> None: ...
|
||||
def bind_parameter(self, cursor: Any): ...
|
||||
def __getattr__(self, key: Any): ...
|
||||
def bind_parameter(self, cursor: Any) -> Any: ...
|
||||
def __getattr__(self, key: Any) -> Any: ...
|
||||
def __setattr__(self, key: Any, value: Any) -> None: ...
|
||||
|
||||
class FormatStylePlaceholderCursor:
|
||||
charset: str = ...
|
||||
cursor: Any = ...
|
||||
def __init__(self, connection: Any) -> None: ...
|
||||
def execute(self, query: Any, params: Optional[Any] = ...): ...
|
||||
def executemany(self, query: Any, params: Optional[Any] = ...): ...
|
||||
def execute(self, query: Any, params: Optional[Any] = ...) -> Any: ...
|
||||
def executemany(self, query: Any, params: Optional[Any] = ...) -> Any: ...
|
||||
def close(self) -> None: ...
|
||||
def var(self, *args: Any): ...
|
||||
def arrayvar(self, *args: Any): ...
|
||||
def __getattr__(self, attr: Any): ...
|
||||
def var(self, *args: Any) -> Any: ...
|
||||
def arrayvar(self, *args: Any) -> Any: ...
|
||||
def __getattr__(self, attr: Any) -> Any: ...
|
||||
def __iter__(self) -> Any: ...
|
||||
|
||||
@@ -8,4 +8,4 @@ TEST_DATABASE_PREFIX: str
|
||||
class DatabaseCreation(BaseDatabaseCreation):
|
||||
connection: DatabaseWrapper
|
||||
def set_as_test_mirror(self, primary_settings_dict: Any) -> None: ...
|
||||
def test_db_signature(self): ...
|
||||
def test_db_signature(self) -> Any: ...
|
||||
|
||||
@@ -9,13 +9,13 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
|
||||
connection: DatabaseWrapper
|
||||
cache_bust_counter: int = ...
|
||||
@property
|
||||
def data_types_reverse(self): ...
|
||||
def get_field_type(self, data_type: Any, description: Any): ...
|
||||
def get_table_list(self, cursor: Any): ...
|
||||
def get_table_description(self, cursor: Any, table_name: Any): ...
|
||||
def identifier_converter(self, name: Any): ...
|
||||
def get_sequences(self, cursor: Any, table_name: Any, table_fields: Any = ...): ...
|
||||
def get_relations(self, cursor: Any, table_name: Any): ...
|
||||
def get_key_columns(self, cursor: Any, table_name: Any): ...
|
||||
def get_primary_key_column(self, cursor: Any, table_name: Any): ...
|
||||
def get_constraints(self, cursor: Any, table_name: Any): ...
|
||||
def data_types_reverse(self) -> Any: ...
|
||||
def get_field_type(self, data_type: Any, description: Any) -> Any: ...
|
||||
def get_table_list(self, cursor: Any) -> Any: ...
|
||||
def get_table_description(self, cursor: Any, table_name: Any) -> Any: ...
|
||||
def identifier_converter(self, name: Any) -> Any: ...
|
||||
def get_sequences(self, cursor: Any, table_name: Any, table_fields: Any = ...) -> Any: ...
|
||||
def get_relations(self, cursor: Any, table_name: Any) -> Any: ...
|
||||
def get_key_columns(self, cursor: Any, table_name: Any) -> Any: ...
|
||||
def get_primary_key_column(self, cursor: Any, table_name: Any) -> Any: ...
|
||||
def get_constraints(self, cursor: Any, table_name: Any) -> Any: ...
|
||||
|
||||
@@ -6,13 +6,13 @@ class InsertVar:
|
||||
db_type: Any = ...
|
||||
bound_param: Any = ...
|
||||
def __init__(self, field: Any) -> None: ...
|
||||
def bind_parameter(self, cursor: Any): ...
|
||||
def get_value(self): ...
|
||||
def bind_parameter(self, cursor: Any) -> Any: ...
|
||||
def get_value(self) -> Any: ...
|
||||
|
||||
class Oracle_datetime(datetime.datetime):
|
||||
input_size: Any = ...
|
||||
@classmethod
|
||||
def from_datetime(cls, dt: Any): ...
|
||||
def from_datetime(cls, dt: Any) -> Any: ...
|
||||
|
||||
class BulkInsertMapper:
|
||||
BLOB: str = ...
|
||||
|
||||
@@ -5,4 +5,4 @@ from django.db.backends.oracle.base import DatabaseWrapper
|
||||
|
||||
class DatabaseValidation(BaseDatabaseValidation):
|
||||
connection: DatabaseWrapper
|
||||
def check_field_type(self, field: Any, field_type: Any): ...
|
||||
def check_field_type(self, field: Any, field_type: Any) -> Any: ...
|
||||
|
||||
Reference in New Issue
Block a user