Closed Mityuha closed 2 years ago
Now you can customize only cakes with hand_made function
hand_made
class MyBakery(Bakery): int_type=hand_made( Cake(int), cake_baking_method=BakingMethod.BAKE_NO_BAKE )
But maybe it would be convenient to write
class MyBakery(Bakery): int_type=hand_made( int, cake_baking_method=BakingMethod.BAKE_NO_BAKE )
More real life example:
@contextmanager def my_func(): yield 1 class MyBakery(Bakery): my_func_alias = hand_made( Cake(my_func), # <<< extra Cake? cake_baking_method=BakingMethod.BAKE_NO_BAKE, )
Fix documentation
Now you can customize only cakes with
hand_made
functionBut maybe it would be convenient to write
More real life example:
Fix documentation