From ac0d201aa3f2c3063213611d76979dfcb683c637 Mon Sep 17 00:00:00 2001 From: Alen Date: Sun, 19 Jan 2025 04:31:38 +0400 Subject: Rename BDelta to BD in IPython datetime utils --- dot_ipython/profile_default/startup/45_datetime.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dot_ipython/profile_default') diff --git a/dot_ipython/profile_default/startup/45_datetime.py b/dot_ipython/profile_default/startup/45_datetime.py index d8dcf4e..4dd592b 100644 --- a/dot_ipython/profile_default/startup/45_datetime.py +++ b/dot_ipython/profile_default/startup/45_datetime.py @@ -59,14 +59,14 @@ D = lambda d: datetime.timedelta(days=d) H = lambda h: datetime.timedelta(hours=h) M = lambda m: datetime.timedelta(minutes=m) S = lambda s: datetime.timedelta(seconds=s) -B = lambda s: BDelta(s) +B = lambda s: BD(s) def now(tz=UTC): return datetime.datetime.now(tz=tz) -class BDelta: +class BD: """Convenient dev weekday delta.""" def __init__(self, n: int): -- cgit 1.4.1-2-gfad0