mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-08 04:54:48 +08:00
move generated stubs to separate directory, too messty
This commit is contained in:
19
django-stubs-generated/utils/safestring.pyi
Normal file
19
django-stubs-generated/utils/safestring.pyi
Normal file
@@ -0,0 +1,19 @@
|
||||
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]: ...
|
||||
Reference in New Issue
Block a user