Lines Matching refs:str
131 def import_string(import_name: str, silent: bool = False) -> t.Any:
155 def open_if_exists(filename: str, mode: str = "rb") -> t.Optional[t.IO]:
165 def object_type_repr(obj: t.Any) -> str:
183 def pformat(obj: t.Any) -> str:
222 text: str,
224 rel: t.Optional[str] = None,
225 target: t.Optional[str] = None,
226 extra_schemes: t.Optional[t.Iterable[str]] = None,
227 ) -> str:
261 def trim_url(x: str) -> str:
269 def trim_url(x: str) -> str:
272 words = re.split(r"(\s+)", str(markupsafe.escape(text)))
344 ) -> str:
397 def url_quote(obj: t.Any, charset: str = "utf-8", for_qs: bool = False) -> str:
406 if not isinstance(obj, str):
407 obj = str(obj)
442 def __getstate__(self) -> t.Mapping[str, t.Any]:
449 def __setstate__(self, d: t.Mapping[str, t.Any]) -> None:
494 def __repr__(self) -> str:
571 enabled_extensions: t.Collection[str] = ("html", "htm", "xml"),
572 disabled_extensions: t.Collection[str] = (),
575 ) -> t.Callable[[t.Optional[str]], bool]:
613 def autoescape(template_name: t.Optional[str]) -> bool:
627 obj: t.Any, dumps: t.Optional[t.Callable[..., str]] = None, **kwargs: t.Any
723 def __init__(self, sep: str = ", ") -> None:
727 def __call__(self) -> str:
742 def __getattribute__(self, name: str) -> t.Any:
751 def __setitem__(self, name: str, value: t.Any) -> None:
754 def __repr__(self) -> str: