Skip to content

Commit 71a9ee3

Browse files
committed
style: code formatting
1 parent 4a73bed commit 71a9ee3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

chapter03_decorator/readme.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# Chapter 3: Decorator design pattern
22

3-
> **Decorator**: Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.
3+
> **Decorator**: Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative
4+
> to subclassing for extending functionality.
45
5-
Not quite the same as python [decorator syntax](https://docs.python.org/3/reference/compound_stmts.html#grammar-token-decorators)
6-
as in python you call the _decorated function_ and the decorating function
6+
Not quite the same as
7+
python [decorator syntax](https://docs.python.org/3/reference/compound_stmts.html#grammar-token-decorators)
8+
as in python you call the _decorated function_ and the decorating function
79
is called first whereas the _decorating function_ must be called here.
810

9-
I subclass `ABC` and used the `@abstractmethod` decorator from the
10-
`abc` module here but do not use any of this functionality -
11+
I subclass `ABC` and used the `@abstractmethod` decorator from the
12+
`abc` module here but do not use any of this functionality -
1113
it just serves as documentation.
1214

1315
## Running the code

0 commit comments

Comments
 (0)