Files
django-stubs/django/urls/converters.pyi
Maxim Kurnikov a9f215bf64 initial commit
2018-07-29 18:12:23 +03:00

24 lines
572 B
Python

from typing import (
Any,
Dict,
Union,
)
from urlpatterns.converters import DynamicConverter
from uuid import UUID
def get_converter(raw_converter: str) -> Any: ...
def get_converters(
) -> Dict[str, Union[IntConverter, StringConverter, UUIDConverter, DynamicConverter]]: ...
class IntConverter:
def to_python(self, value: str) -> int: ...
def to_url(self, value: Union[str, int]) -> str: ...
class StringConverter:
def to_python(self, value: str) -> str: ...
def to_url(self, value: Union[str, UUID, int]) -> Union[str, UUID, int]: ...