mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-07 04:34:29 +08:00
17 lines
419 B
Python
17 lines
419 B
Python
from typing import Any, Callable, Optional, Union
|
|
|
|
from django.forms.boundfield import BoundField
|
|
|
|
class SafeData:
|
|
def __html__(self) -> SafeText: ...
|
|
|
|
class SafeBytes(bytes, SafeData):
|
|
def __add__(self, rhs: Any): ...
|
|
|
|
class SafeText(str, SafeData):
|
|
def __add__(self, rhs: str) -> str: ...
|
|
|
|
SafeString = SafeText
|
|
|
|
def mark_safe(s: Union[Callable, BoundField, str]) -> Union[Callable, BoundField, str]: ...
|