Skip to content

Commit d3753e6

Browse files
committed
Callable
1 parent a1e0482 commit d3753e6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,15 @@ class MySequence:
704704
yield el
705705
```
706706

707+
### Callable
708+
```python
709+
class MyCallable:
710+
def __init__(self, a):
711+
self.a = a
712+
def __call__(self):
713+
return a
714+
```
715+
707716
### Copy
708717
```python
709718
from copy import copy, deepcopy

0 commit comments

Comments
 (0)