opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
numpy
/
typing
/
tests
/
data
/
reveal
➕ New
📤 Upload
✎ Editing:
datasource.pyi
← Back
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]
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel