File: to_tuple_decorator.py

package info (click to toggle)
python-eth-utils 5.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,140 kB
  • sloc: python: 5,985; makefile: 238
file content (16 lines) | stat: -rw-r--r-- 187 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from typing import (
    List,
)

from eth_utils import (
    to_tuple,
)


@to_tuple
def return_value() -> List[int]:
    return [1, 2]


x = return_value()
reveal_type(x)  # noqa: F821