datasource.pyi 395 B

123456789101112131415
  1. from pathlib import Path
  2. import numpy as np
  3. path: Path
  4. d1: np.DataSource
  5. d1.abspath(path) # E: incompatible type
  6. d1.abspath(b"...") # E: incompatible type
  7. d1.exists(path) # E: incompatible type
  8. d1.exists(b"...") # E: incompatible type
  9. d1.open(path, "r") # E: incompatible type
  10. d1.open(b"...", encoding="utf8") # E: incompatible type
  11. d1.open(None, newline="/n") # E: incompatible type