File: test_typehints.yml

package info (click to toggle)
python-aioshutil 1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 140 kB
  • sloc: python: 307; makefile: 3
file content (16 lines) | stat: -rw-r--r-- 547 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
- case: decorator_produces_coroutine
  regex: yes
  main: |
    from aioshutil import rmtree
    reveal_type(rmtree)
  out: |
    main:2: note: Revealed type is "def \(.*?\) -> typing\.Coroutine\[Any, Any, \w+\]"
  skip: sys.version_info < (3, 10)
- case: copy_overload_typehint
  regex: yes
  main: |
    from aioshutil import copy
    reveal_type(copy)
  out: |
    main:2: note: Revealed type is "Overload\(def \(.*\) -> typing\.Coroutine\[Any, Any, \w+\], def \(.*\) -> typing\.Coroutine\[Any, Any, \w+\]\)"
  skip: sys.version_info < (3, 10)