mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-15 16:27:09 +08:00
reformat with black
This commit is contained in:
@@ -7,6 +7,7 @@ from typing import Any, Optional
|
||||
|
||||
from _frozen_importlib_external import _NamespacePath
|
||||
from typing import List, Optional, Union
|
||||
|
||||
__author__: str
|
||||
__version__: str
|
||||
PY2: Any
|
||||
@@ -47,7 +48,14 @@ class _LazyModule(types.ModuleType):
|
||||
class MovedAttribute(_LazyDescr):
|
||||
mod: Any = ...
|
||||
attr: Any = ...
|
||||
def __init__(self, name: Any, old_mod: Any, new_mod: Any, old_attr: Optional[Any] = ..., new_attr: Optional[Any] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
name: Any,
|
||||
old_mod: Any,
|
||||
new_mod: Any,
|
||||
old_attr: Optional[Any] = ...,
|
||||
new_attr: Optional[Any] = ...,
|
||||
) -> None: ...
|
||||
def _resolve(self): ...
|
||||
|
||||
class _SixMetaPathImporter:
|
||||
@@ -56,7 +64,9 @@ class _SixMetaPathImporter:
|
||||
def __init__(self, six_module_name: Any) -> None: ...
|
||||
def _add_module(self, mod: Any, *fullnames: Any) -> None: ...
|
||||
def _get_module(self, fullname: Any): ...
|
||||
def find_module(self, fullname: str, path: Optional[Union[_NamespacePath, List[str]]] = ...) -> None: ...
|
||||
def find_module(
|
||||
self, fullname: str, path: Optional[Union[_NamespacePath, List[str]]] = ...
|
||||
) -> None: ...
|
||||
def __get_module(self, fullname: Any): ...
|
||||
def load_module(self, fullname: Any): ...
|
||||
def is_package(self, fullname: Any): ...
|
||||
@@ -118,10 +128,12 @@ def get_unbound_function(unbound: Any): ...
|
||||
create_bound_method: Any
|
||||
|
||||
def create_unbound_method(func: Any, cls: Any): ...
|
||||
|
||||
Iterator = object
|
||||
|
||||
class Iterator:
|
||||
def next(self): ...
|
||||
|
||||
callable = callable
|
||||
get_method_function: Any
|
||||
get_method_self: Any
|
||||
@@ -141,6 +153,7 @@ viewitems: Any
|
||||
|
||||
def b(s: Any): ...
|
||||
def u(s: Any): ...
|
||||
|
||||
unichr = chr
|
||||
int2byte: Any
|
||||
byte2int: Any
|
||||
|
||||
Reference in New Issue
Block a user