Local implementation of `itertools.count()` to allow v2.6 compatibility.
(start: int = 0, step: int = 1)
| 29 | |
| 30 | |
| 31 | def count(start: int = 0, step: int = 1): |
| 32 | """Local implementation of `itertools.count()` to allow v2.6 compatibility.""" |
| 33 | n = start |
| 34 | while True: |
| 35 | yield n |
| 36 | n += step |
| 37 | |
| 38 | |
| 39 | def test_file(filename: str) -> str: |
no outgoing calls
no test coverage detected
searching dependent graphs…