File: example.py

package info (click to toggle)
sphinx-autoapi 3.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 884 kB
  • sloc: python: 5,260; makefile: 7
file content (18 lines) | stat: -rw-r--r-- 265 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from pathlib import Path
from typing import Optional, Union


def simple(p: Path):
    """This is OK"""


def optional(p: Optional[Path]):
    """This is OK"""


def union(p: Union[Path, None]):
    """This is OK"""


def pipe(p: Path | None):
    """This is OK"""