File: python313.py

package info (click to toggle)
pycodestyle 2.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 632 kB
  • sloc: python: 4,743; makefile: 135; sh: 12
file content (22 lines) | stat: -rw-r--r-- 271 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
type Alias[T: (int, str) = str] = list[T]
type Alias2[T = str] = list[T]


class C[T: (int, str) = str]:
    pass


class C2[T = str]:
    pass


class C3[T, U: str = str]:
    pass


def f[T: (int, str) = str](t: T) -> T:
    pass


def f2[T = str](t: T) -> T:
    pass