https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/numpy/typing/tests/data/reveal/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/numpy/typing/tests/data/reveal/datasource.py
from pathlib import Path
import numpy as np

path1: Path
path2: str

d1 = np.DataSource(path1)
d2 = np.DataSource(path2)
d3 = np.DataSource(None)

reveal_type(d1.abspath("..."))  # E: str
reveal_type(d2.abspath("..."))  # E: str
reveal_type(d3.abspath("..."))  # E: str

reveal_type(d1.exists("..."))  # E: bool
reveal_type(d2.exists("..."))  # E: bool
reveal_type(d3.exists("..."))  # E: bool

reveal_type(d1.open("...", "r"))  # E: IO[Any]
reveal_type(d2.open("...", encoding="utf8"))  # E: IO[Any]
reveal_type(d3.open("...", newline="/n"))  # E: IO[Any]

https://t.me/RX1948 - 2025