mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-11-09 13:40:36 +08:00
run black over stubs, add checking to travis
This commit is contained in:
1 parent
d5bc7d4ab2
commit
cf6119bf9b
420 files changed
+2295
-8384
No files matched your search
@@ -1,7 +1,6 @@
|
||||
from typing import Any, Dict, Optional, Type, Union
|
||||
from uuid import UUID
|
||||
|
||||
|
||||
class IntConverter:
|
||||
regex: str = ...
|
||||
def to_python(self, value: str) -> int: ...
|
||||
@@ -27,9 +26,5 @@ DEFAULT_CONVERTERS: Any
|
||||
REGISTERED_CONVERTERS: Any
|
||||
|
||||
def register_converter(converter: Type[Any], type_name: str) -> None: ...
|
||||
def get_converters() -> Dict[
|
||||
str, Union[IntConverter, StringConverter, UUIDConverter]
|
||||
]: ...
|
||||
def get_converter(
|
||||
raw_converter: str
|
||||
) -> Union[IntConverter, StringConverter, UUIDConverter]: ...
|
||||
def get_converters() -> Dict[str, Union[IntConverter, StringConverter, UUIDConverter]]: ...
|
||||
def get_converter(raw_converter: str) -> Union[IntConverter, StringConverter, UUIDConverter]: ...
|
||||
Reference in new issue
Block a user