File: to_set_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-- 186 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_set,
)


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


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