banner.pyi 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701
  1. """Stub file for reflex/components/core/banner.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Literal, Optional, overload
  6. from reflex.components.base.fragment import Fragment
  7. from reflex.components.component import Component
  8. from reflex.components.el.elements.typography import Div
  9. from reflex.components.lucide.icon import Icon
  10. from reflex.constants.compiler import CompileVars
  11. from reflex.event import EventType
  12. from reflex.style import Style
  13. from reflex.utils.imports import ImportVar
  14. from reflex.vars import VarData
  15. from reflex.vars.base import Var
  16. from reflex.vars.number import BooleanVar
  17. connect_error_var_data: VarData
  18. connect_errors = Var(
  19. _js_expr=CompileVars.CONNECT_ERROR, _var_data=connect_error_var_data
  20. )
  21. connection_error = Var(
  22. _js_expr="((connectErrors.length > 0) ? connectErrors[connectErrors.length - 1].message : '')",
  23. _var_data=connect_error_var_data,
  24. )
  25. connection_errors_count = Var(
  26. _js_expr="connectErrors.length", _var_data=connect_error_var_data
  27. )
  28. has_connection_errors = Var(
  29. _js_expr="(connectErrors.length > 0)", _var_data=connect_error_var_data
  30. ).to(BooleanVar)
  31. has_too_many_connection_errors = Var(
  32. _js_expr="(connectErrors.length >= 2)", _var_data=connect_error_var_data
  33. ).to(BooleanVar)
  34. class WebsocketTargetURL(Var):
  35. @classmethod
  36. def create(cls) -> Var: ... # type: ignore
  37. def default_connection_error() -> list[str | Var | Component]: ...
  38. class ConnectionToaster(Fragment):
  39. def add_hooks(self) -> list[str | Var]: ...
  40. @overload
  41. @classmethod
  42. def create( # type: ignore
  43. cls,
  44. *children,
  45. style: Style | None = None,
  46. key: Any | None = None,
  47. id: Any | None = None,
  48. class_name: Any | None = None,
  49. autofocus: bool | None = None,
  50. custom_attrs: dict[str, Var | Any] | None = None,
  51. on_blur: Optional[EventType[()]] = None,
  52. on_click: Optional[EventType[()]] = None,
  53. on_context_menu: Optional[EventType[()]] = None,
  54. on_double_click: Optional[EventType[()]] = None,
  55. on_focus: Optional[EventType[()]] = None,
  56. on_mount: Optional[EventType[()]] = None,
  57. on_mouse_down: Optional[EventType[()]] = None,
  58. on_mouse_enter: Optional[EventType[()]] = None,
  59. on_mouse_leave: Optional[EventType[()]] = None,
  60. on_mouse_move: Optional[EventType[()]] = None,
  61. on_mouse_out: Optional[EventType[()]] = None,
  62. on_mouse_over: Optional[EventType[()]] = None,
  63. on_mouse_up: Optional[EventType[()]] = None,
  64. on_scroll: Optional[EventType[()]] = None,
  65. on_unmount: Optional[EventType[()]] = None,
  66. **props,
  67. ) -> "ConnectionToaster":
  68. """Create a connection toaster component.
  69. Args:
  70. *children: The children of the component.
  71. style: The style of the component.
  72. key: A unique key for the component.
  73. id: The id for the component.
  74. class_name: The class name for the component.
  75. autofocus: Whether the component should take the focus once the page is loaded
  76. custom_attrs: custom attribute
  77. **props: The properties of the component.
  78. Returns:
  79. The connection toaster component.
  80. """
  81. ...
  82. class ConnectionBanner(Component):
  83. @overload
  84. @classmethod
  85. def create( # type: ignore
  86. cls,
  87. *children,
  88. style: Style | None = None,
  89. key: Any | None = None,
  90. id: Any | None = None,
  91. class_name: Any | None = None,
  92. autofocus: bool | None = None,
  93. custom_attrs: dict[str, Var | Any] | None = None,
  94. on_blur: Optional[EventType[()]] = None,
  95. on_click: Optional[EventType[()]] = None,
  96. on_context_menu: Optional[EventType[()]] = None,
  97. on_double_click: Optional[EventType[()]] = None,
  98. on_focus: Optional[EventType[()]] = None,
  99. on_mount: Optional[EventType[()]] = None,
  100. on_mouse_down: Optional[EventType[()]] = None,
  101. on_mouse_enter: Optional[EventType[()]] = None,
  102. on_mouse_leave: Optional[EventType[()]] = None,
  103. on_mouse_move: Optional[EventType[()]] = None,
  104. on_mouse_out: Optional[EventType[()]] = None,
  105. on_mouse_over: Optional[EventType[()]] = None,
  106. on_mouse_up: Optional[EventType[()]] = None,
  107. on_scroll: Optional[EventType[()]] = None,
  108. on_unmount: Optional[EventType[()]] = None,
  109. **props,
  110. ) -> "ConnectionBanner":
  111. """Create a connection banner component.
  112. Args:
  113. comp: The component to render when there's a server connection error.
  114. Returns:
  115. The connection banner component.
  116. """
  117. ...
  118. class ConnectionModal(Component):
  119. @overload
  120. @classmethod
  121. def create( # type: ignore
  122. cls,
  123. *children,
  124. style: Style | None = None,
  125. key: Any | None = None,
  126. id: Any | None = None,
  127. class_name: Any | None = None,
  128. autofocus: bool | None = None,
  129. custom_attrs: dict[str, Var | Any] | None = None,
  130. on_blur: Optional[EventType[()]] = None,
  131. on_click: Optional[EventType[()]] = None,
  132. on_context_menu: Optional[EventType[()]] = None,
  133. on_double_click: Optional[EventType[()]] = None,
  134. on_focus: Optional[EventType[()]] = None,
  135. on_mount: Optional[EventType[()]] = None,
  136. on_mouse_down: Optional[EventType[()]] = None,
  137. on_mouse_enter: Optional[EventType[()]] = None,
  138. on_mouse_leave: Optional[EventType[()]] = None,
  139. on_mouse_move: Optional[EventType[()]] = None,
  140. on_mouse_out: Optional[EventType[()]] = None,
  141. on_mouse_over: Optional[EventType[()]] = None,
  142. on_mouse_up: Optional[EventType[()]] = None,
  143. on_scroll: Optional[EventType[()]] = None,
  144. on_unmount: Optional[EventType[()]] = None,
  145. **props,
  146. ) -> "ConnectionModal":
  147. """Create a connection banner component.
  148. Args:
  149. comp: The component to render when there's a server connection error.
  150. Returns:
  151. The connection banner component.
  152. """
  153. ...
  154. class WifiOffPulse(Icon):
  155. @overload
  156. @classmethod
  157. def create( # type: ignore
  158. cls,
  159. *children,
  160. size: Var[int] | int | None = None,
  161. style: Style | None = None,
  162. key: Any | None = None,
  163. id: Any | None = None,
  164. class_name: Any | None = None,
  165. autofocus: bool | None = None,
  166. custom_attrs: dict[str, Var | Any] | None = None,
  167. on_blur: Optional[EventType[()]] = None,
  168. on_click: Optional[EventType[()]] = None,
  169. on_context_menu: Optional[EventType[()]] = None,
  170. on_double_click: Optional[EventType[()]] = None,
  171. on_focus: Optional[EventType[()]] = None,
  172. on_mount: Optional[EventType[()]] = None,
  173. on_mouse_down: Optional[EventType[()]] = None,
  174. on_mouse_enter: Optional[EventType[()]] = None,
  175. on_mouse_leave: Optional[EventType[()]] = None,
  176. on_mouse_move: Optional[EventType[()]] = None,
  177. on_mouse_out: Optional[EventType[()]] = None,
  178. on_mouse_over: Optional[EventType[()]] = None,
  179. on_mouse_up: Optional[EventType[()]] = None,
  180. on_scroll: Optional[EventType[()]] = None,
  181. on_unmount: Optional[EventType[()]] = None,
  182. **props,
  183. ) -> "WifiOffPulse":
  184. """Create a wifi_off icon with an animated opacity pulse.
  185. Args:
  186. *children: The children of the component.
  187. size: The size of the icon in pixels.
  188. style: The style of the component.
  189. key: A unique key for the component.
  190. id: The id for the component.
  191. class_name: The class name for the component.
  192. autofocus: Whether the component should take the focus once the page is loaded
  193. custom_attrs: custom attribute
  194. **props: The properties of the component.
  195. Returns:
  196. The icon component with default props applied.
  197. """
  198. ...
  199. def add_imports(self) -> dict[str, str | ImportVar | list[str | ImportVar]]: ...
  200. class ConnectionPulser(Div):
  201. @overload
  202. @classmethod
  203. def create( # type: ignore
  204. cls,
  205. *children,
  206. access_key: Var[str] | str | None = None,
  207. auto_capitalize: Literal[
  208. "characters", "none", "off", "on", "sentences", "words"
  209. ]
  210. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  211. | None = None,
  212. content_editable: Literal["inherit", "plaintext-only", False, True]
  213. | Var[Literal["inherit", "plaintext-only", False, True]]
  214. | None = None,
  215. context_menu: Var[str] | str | None = None,
  216. dir: Var[str] | str | None = None,
  217. draggable: Var[bool] | bool | None = None,
  218. enter_key_hint: Literal[
  219. "done", "enter", "go", "next", "previous", "search", "send"
  220. ]
  221. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  222. | None = None,
  223. hidden: Var[bool] | bool | None = None,
  224. input_mode: Literal[
  225. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  226. ]
  227. | Var[
  228. Literal[
  229. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  230. ]
  231. ]
  232. | None = None,
  233. item_prop: Var[str] | str | None = None,
  234. lang: Var[str] | str | None = None,
  235. role: Literal[
  236. "alert",
  237. "alertdialog",
  238. "application",
  239. "article",
  240. "banner",
  241. "button",
  242. "cell",
  243. "checkbox",
  244. "columnheader",
  245. "combobox",
  246. "complementary",
  247. "contentinfo",
  248. "definition",
  249. "dialog",
  250. "directory",
  251. "document",
  252. "feed",
  253. "figure",
  254. "form",
  255. "grid",
  256. "gridcell",
  257. "group",
  258. "heading",
  259. "img",
  260. "link",
  261. "list",
  262. "listbox",
  263. "listitem",
  264. "log",
  265. "main",
  266. "marquee",
  267. "math",
  268. "menu",
  269. "menubar",
  270. "menuitem",
  271. "menuitemcheckbox",
  272. "menuitemradio",
  273. "navigation",
  274. "none",
  275. "note",
  276. "option",
  277. "presentation",
  278. "progressbar",
  279. "radio",
  280. "radiogroup",
  281. "region",
  282. "row",
  283. "rowgroup",
  284. "rowheader",
  285. "scrollbar",
  286. "search",
  287. "searchbox",
  288. "separator",
  289. "slider",
  290. "spinbutton",
  291. "status",
  292. "switch",
  293. "tab",
  294. "table",
  295. "tablist",
  296. "tabpanel",
  297. "term",
  298. "textbox",
  299. "timer",
  300. "toolbar",
  301. "tooltip",
  302. "tree",
  303. "treegrid",
  304. "treeitem",
  305. ]
  306. | Var[
  307. Literal[
  308. "alert",
  309. "alertdialog",
  310. "application",
  311. "article",
  312. "banner",
  313. "button",
  314. "cell",
  315. "checkbox",
  316. "columnheader",
  317. "combobox",
  318. "complementary",
  319. "contentinfo",
  320. "definition",
  321. "dialog",
  322. "directory",
  323. "document",
  324. "feed",
  325. "figure",
  326. "form",
  327. "grid",
  328. "gridcell",
  329. "group",
  330. "heading",
  331. "img",
  332. "link",
  333. "list",
  334. "listbox",
  335. "listitem",
  336. "log",
  337. "main",
  338. "marquee",
  339. "math",
  340. "menu",
  341. "menubar",
  342. "menuitem",
  343. "menuitemcheckbox",
  344. "menuitemradio",
  345. "navigation",
  346. "none",
  347. "note",
  348. "option",
  349. "presentation",
  350. "progressbar",
  351. "radio",
  352. "radiogroup",
  353. "region",
  354. "row",
  355. "rowgroup",
  356. "rowheader",
  357. "scrollbar",
  358. "search",
  359. "searchbox",
  360. "separator",
  361. "slider",
  362. "spinbutton",
  363. "status",
  364. "switch",
  365. "tab",
  366. "table",
  367. "tablist",
  368. "tabpanel",
  369. "term",
  370. "textbox",
  371. "timer",
  372. "toolbar",
  373. "tooltip",
  374. "tree",
  375. "treegrid",
  376. "treeitem",
  377. ]
  378. ]
  379. | None = None,
  380. slot: Var[str] | str | None = None,
  381. spell_check: Var[bool] | bool | None = None,
  382. tab_index: Var[int] | int | None = None,
  383. title: Var[str] | str | None = None,
  384. style: Style | None = None,
  385. key: Any | None = None,
  386. id: Any | None = None,
  387. class_name: Any | None = None,
  388. autofocus: bool | None = None,
  389. custom_attrs: dict[str, Var | Any] | None = None,
  390. on_blur: Optional[EventType[()]] = None,
  391. on_click: Optional[EventType[()]] = None,
  392. on_context_menu: Optional[EventType[()]] = None,
  393. on_double_click: Optional[EventType[()]] = None,
  394. on_focus: Optional[EventType[()]] = None,
  395. on_mount: Optional[EventType[()]] = None,
  396. on_mouse_down: Optional[EventType[()]] = None,
  397. on_mouse_enter: Optional[EventType[()]] = None,
  398. on_mouse_leave: Optional[EventType[()]] = None,
  399. on_mouse_move: Optional[EventType[()]] = None,
  400. on_mouse_out: Optional[EventType[()]] = None,
  401. on_mouse_over: Optional[EventType[()]] = None,
  402. on_mouse_up: Optional[EventType[()]] = None,
  403. on_scroll: Optional[EventType[()]] = None,
  404. on_unmount: Optional[EventType[()]] = None,
  405. **props,
  406. ) -> "ConnectionPulser":
  407. """Create a connection pulser component.
  408. Args:
  409. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  410. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  411. content_editable: Indicates whether the element's content is editable.
  412. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  413. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  414. draggable: Defines whether the element can be dragged.
  415. enter_key_hint: Hints what media types the media element is able to play.
  416. hidden: Defines whether the element is hidden.
  417. input_mode: Defines the type of the element.
  418. item_prop: Defines the name of the element for metadata purposes.
  419. lang: Defines the language used in the element.
  420. role: Defines the role of the element.
  421. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  422. spell_check: Defines whether the element may be checked for spelling errors.
  423. tab_index: Defines the position of the current element in the tabbing order.
  424. title: Defines a tooltip for the element.
  425. style: The style of the component.
  426. key: A unique key for the component.
  427. id: The id for the component.
  428. class_name: The class name for the component.
  429. autofocus: Whether the component should take the focus once the page is loaded
  430. custom_attrs: custom attribute
  431. **props: The properties of the component.
  432. Returns:
  433. The connection pulser component.
  434. """
  435. ...
  436. class BackendDisabled(Div):
  437. @overload
  438. @classmethod
  439. def create( # type: ignore
  440. cls,
  441. *children,
  442. access_key: Var[str] | str | None = None,
  443. auto_capitalize: Literal[
  444. "characters", "none", "off", "on", "sentences", "words"
  445. ]
  446. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  447. | None = None,
  448. content_editable: Literal["inherit", "plaintext-only", False, True]
  449. | Var[Literal["inherit", "plaintext-only", False, True]]
  450. | None = None,
  451. context_menu: Var[str] | str | None = None,
  452. dir: Var[str] | str | None = None,
  453. draggable: Var[bool] | bool | None = None,
  454. enter_key_hint: Literal[
  455. "done", "enter", "go", "next", "previous", "search", "send"
  456. ]
  457. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  458. | None = None,
  459. hidden: Var[bool] | bool | None = None,
  460. input_mode: Literal[
  461. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  462. ]
  463. | Var[
  464. Literal[
  465. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  466. ]
  467. ]
  468. | None = None,
  469. item_prop: Var[str] | str | None = None,
  470. lang: Var[str] | str | None = None,
  471. role: Literal[
  472. "alert",
  473. "alertdialog",
  474. "application",
  475. "article",
  476. "banner",
  477. "button",
  478. "cell",
  479. "checkbox",
  480. "columnheader",
  481. "combobox",
  482. "complementary",
  483. "contentinfo",
  484. "definition",
  485. "dialog",
  486. "directory",
  487. "document",
  488. "feed",
  489. "figure",
  490. "form",
  491. "grid",
  492. "gridcell",
  493. "group",
  494. "heading",
  495. "img",
  496. "link",
  497. "list",
  498. "listbox",
  499. "listitem",
  500. "log",
  501. "main",
  502. "marquee",
  503. "math",
  504. "menu",
  505. "menubar",
  506. "menuitem",
  507. "menuitemcheckbox",
  508. "menuitemradio",
  509. "navigation",
  510. "none",
  511. "note",
  512. "option",
  513. "presentation",
  514. "progressbar",
  515. "radio",
  516. "radiogroup",
  517. "region",
  518. "row",
  519. "rowgroup",
  520. "rowheader",
  521. "scrollbar",
  522. "search",
  523. "searchbox",
  524. "separator",
  525. "slider",
  526. "spinbutton",
  527. "status",
  528. "switch",
  529. "tab",
  530. "table",
  531. "tablist",
  532. "tabpanel",
  533. "term",
  534. "textbox",
  535. "timer",
  536. "toolbar",
  537. "tooltip",
  538. "tree",
  539. "treegrid",
  540. "treeitem",
  541. ]
  542. | Var[
  543. Literal[
  544. "alert",
  545. "alertdialog",
  546. "application",
  547. "article",
  548. "banner",
  549. "button",
  550. "cell",
  551. "checkbox",
  552. "columnheader",
  553. "combobox",
  554. "complementary",
  555. "contentinfo",
  556. "definition",
  557. "dialog",
  558. "directory",
  559. "document",
  560. "feed",
  561. "figure",
  562. "form",
  563. "grid",
  564. "gridcell",
  565. "group",
  566. "heading",
  567. "img",
  568. "link",
  569. "list",
  570. "listbox",
  571. "listitem",
  572. "log",
  573. "main",
  574. "marquee",
  575. "math",
  576. "menu",
  577. "menubar",
  578. "menuitem",
  579. "menuitemcheckbox",
  580. "menuitemradio",
  581. "navigation",
  582. "none",
  583. "note",
  584. "option",
  585. "presentation",
  586. "progressbar",
  587. "radio",
  588. "radiogroup",
  589. "region",
  590. "row",
  591. "rowgroup",
  592. "rowheader",
  593. "scrollbar",
  594. "search",
  595. "searchbox",
  596. "separator",
  597. "slider",
  598. "spinbutton",
  599. "status",
  600. "switch",
  601. "tab",
  602. "table",
  603. "tablist",
  604. "tabpanel",
  605. "term",
  606. "textbox",
  607. "timer",
  608. "toolbar",
  609. "tooltip",
  610. "tree",
  611. "treegrid",
  612. "treeitem",
  613. ]
  614. ]
  615. | None = None,
  616. slot: Var[str] | str | None = None,
  617. spell_check: Var[bool] | bool | None = None,
  618. tab_index: Var[int] | int | None = None,
  619. title: Var[str] | str | None = None,
  620. style: Style | None = None,
  621. key: Any | None = None,
  622. id: Any | None = None,
  623. class_name: Any | None = None,
  624. autofocus: bool | None = None,
  625. custom_attrs: dict[str, Var | Any] | None = None,
  626. on_blur: Optional[EventType[()]] = None,
  627. on_click: Optional[EventType[()]] = None,
  628. on_context_menu: Optional[EventType[()]] = None,
  629. on_double_click: Optional[EventType[()]] = None,
  630. on_focus: Optional[EventType[()]] = None,
  631. on_mount: Optional[EventType[()]] = None,
  632. on_mouse_down: Optional[EventType[()]] = None,
  633. on_mouse_enter: Optional[EventType[()]] = None,
  634. on_mouse_leave: Optional[EventType[()]] = None,
  635. on_mouse_move: Optional[EventType[()]] = None,
  636. on_mouse_out: Optional[EventType[()]] = None,
  637. on_mouse_over: Optional[EventType[()]] = None,
  638. on_mouse_up: Optional[EventType[()]] = None,
  639. on_scroll: Optional[EventType[()]] = None,
  640. on_unmount: Optional[EventType[()]] = None,
  641. **props,
  642. ) -> "BackendDisabled":
  643. """Create a backend disabled component.
  644. Args:
  645. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  646. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  647. content_editable: Indicates whether the element's content is editable.
  648. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  649. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  650. draggable: Defines whether the element can be dragged.
  651. enter_key_hint: Hints what media types the media element is able to play.
  652. hidden: Defines whether the element is hidden.
  653. input_mode: Defines the type of the element.
  654. item_prop: Defines the name of the element for metadata purposes.
  655. lang: Defines the language used in the element.
  656. role: Defines the role of the element.
  657. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  658. spell_check: Defines whether the element may be checked for spelling errors.
  659. tab_index: Defines the position of the current element in the tabbing order.
  660. title: Defines a tooltip for the element.
  661. style: The style of the component.
  662. key: A unique key for the component.
  663. id: The id for the component.
  664. class_name: The class name for the component.
  665. autofocus: Whether the component should take the focus once the page is loaded
  666. custom_attrs: custom attribute
  667. **props: The properties of the component.
  668. Returns:
  669. The backend disabled component.
  670. """
  671. ...
  672. connection_banner = ConnectionBanner.create
  673. connection_modal = ConnectionModal.create
  674. connection_toaster = ConnectionToaster.create
  675. connection_pulser = ConnectionPulser.create
  676. backend_disabled = BackendDisabled.create