File: test_annotations.py

package info (click to toggle)
python-pydash 8.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,280 kB
  • sloc: python: 14,027; makefile: 83
file content (11 lines) | stat: -rw-r--r-- 207 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
import typing as t

import pydash as _


def typed_function(row: int, index: int, col: t.List[t.Any]):
    return row + 1


def test_annotated_iteratee():
    assert _.map_([1, 2], typed_function) == [2, 3]