def Status.of_active

bend-kit-migrate@0.3.0.0 · migrate.bend:67

import bend-kit-migrate@0.3.0.0/migrate.bend as Migrate
import Base

67# v1 had no pause: an inactive v1 subscription is cancelled.
68def Status.of_active(a: Bool) -> Status:
69  match a:
70    case True{}:
71      Active{}
72    case False{}:
73      Cancelled{}

Uses (2)

Used by (2)