File: double.py

package info (click to toggle)
python-maturin 1.9.4-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,424 kB
  • sloc: python: 656; javascript: 93; sh: 55; makefile: 10
file content (5 lines) | stat: -rw-r--r-- 92 bytes parent folder | download | duplicates (21)
1
2
3
4
5
from typing import Callable


def double(fn: Callable[[], int]) -> int:
    return 2 * fn()