style(python): format with black

This commit is contained in:
GreasrySlug 2023-03-16 22:39:34 +09:00
parent 454224858b
commit 08ad656240
17 changed files with 208 additions and 36 deletions

View file

@ -4,22 +4,27 @@ def if__(cond, then, else_=lambda: None):
else:
return else_()
def for__(iterable, body):
for i in iterable:
body(i)
def while__(cond_block, body):
while cond_block():
body()
def with__(obj, body):
obj.__enter__()
body(obj)
obj.__exit__()
def discard__(obj):
pass
def then__(x, f):
if x == None or x == NotImplemented:
return x