(n: int)
| 8 | |
| 9 | |
| 10 | def _fibonacci_number(n: int) -> int: |
| 11 | if n <= 1: |
| 12 | return n |
| 13 | a, b = 0, 1 |
| 14 | for _ in range(2, n + 1): |
| 15 | a, b = b, a + b |
| 16 | return b |
| 17 | |
| 18 | |
| 19 | @app.task(queue=QUEUE_NAME, name="worker.tasks.calculate_fibonacci") |
no outgoing calls
no test coverage detected