summaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/numpy/typing/tests/data/fail/datasource.pyi
blob: 267b672baea76e1ea1400e6259ab0ed1e5f53c8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from pathlib import Path
import numpy as np

path: Path
d1: np.lib.npyio.DataSource

d1.abspath(path)  # type: ignore[arg-type]
d1.abspath(b"...")  # type: ignore[arg-type]

d1.exists(path)  # type: ignore[arg-type]
d1.exists(b"...")  # type: ignore[arg-type]

d1.open(path, "r")  # type: ignore[arg-type]
d1.open(b"...", encoding="utf8")  # type: ignore[arg-type]
d1.open(None, newline="/n")  # type: ignore[arg-type]