-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyrightconfig.json
More file actions
22 lines (20 loc) · 1.01 KB
/
Copy pathpyrightconfig.json
File metadata and controls
22 lines (20 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
// Pinned to match the minimum Python this project actually
// requires (see AGENTS.md's Building section and .github/workflows/
// ci.yml), independent of whichever interpreter a given editor
// happens to have selected -- without this, pyright/pylance can
// reject perfectly valid modern syntax (e.g. "X | Y" union
// annotations, valid since Python 3.10) if it falls back to an
// older default.
"pythonVersion": "3.12",
// h5py, tomlkit, and astropy (slugpy's third-party dependencies)
// ship no type stubs or py.typed marker. Left at its default of
// true, pyright falls back to inferring types by tracing through
// their actual (untyped) source, which produces extremely noisy,
// often-wrong types for basically every access into an h5py
// object -- false has it treat unstubbed libraries as
// effectively untyped (Any) instead, which is both more accurate
// and far quieter.
"useLibraryCodeForTypes": false,
"include": ["slugpy", "tests/slugpy"]
}