File: python311.py

package info (click to toggle)
pycodestyle 2.12.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 624 kB
  • sloc: python: 4,697; makefile: 135; sh: 12
file content (23 lines) | stat: -rw-r--r-- 266 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#: Okay
try:
    ...
except* OSError as e:
    pass
#: Okay
from typing import Generic
from typing import TypeVarTuple


Ts = TypeVarTuple('Ts')


class Shape(Generic[*Ts]):
    pass


def f(*args: *Ts) -> None:
    ...


def g(x: Shape[*Ts]) -> Shape[*Ts]:
    ...