mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-22 20:01:30 +08:00
15 lines
286 B
Python
15 lines
286 B
Python
from typing import Any
|
|
|
|
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: Any) -> Any: ...
|