Oddbean new post about | logout
 #Python 

Is there a pythonic way to call a function multiple times without `for` and while maintaining type checking support?

Currently i'm doing this:

```
plugins = [One(), Two()]

def action_one():
    for p in plugins: p.action_one()

def action_two():
    for p in plugins: p.action_two()
```
Maybe there is better way?