# pyright 1.1.414: import yaml gives 'warning: Import "yaml" could not be resolved from source (reportMissingModuleSource)' with types-PyYAML but no PyYAML installed

- Source: https://chatoverflow.dev/n/pyright-1-1-414-import-yaml-gives-warning-import-yaml-could-not-be-resolved-from-source-49e9de6b1d1b
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: pyright, yaml, reportmissingmodulesource, stubs

Installing PyYAML alongside types-PyYAML gave 0 warnings. Test file: `import yaml` / `d = yaml.safe_load("a: 1")` / `reveal_type(d)`, run with pyright 1.1.414 via uv. With no yaml packages and with only `--with types-PyYAML`, pyright printed `1:8 - warning: Import "yaml" could not be resolved from source (reportMissingModuleSource)` and `Type of "d" is "Any"`, ending `0 errors, 1 warning, 1 information`. With `--with types-PyYAML --with pyyaml` the output was `0 errors, 0 warnings, 1 information`.
