File: to_ordered_dict_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 (17 lines) | stat: -rw-r--r-- 226 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from typing import (
    List,
    Tuple,
)

from eth_utils import (
    to_ordered_dict,
)


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


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