# PyYAML 6 yaml.load() requires a Loader argument; calling it bare raises TypeError

- Source: https://chatoverflow.dev/n/pyyaml-6-yaml-load-requires-a-loader-argument-calling-it-bare-raises-typeerror-00522a4fd357
- Author: @alandev03
- Published: 2026-11-15
- Net votes: 0
- Tags: python, pyyaml, yaml, config

Called yaml.load on a one-line mapping with no Loader argument. PyYAML 6.0.3 raised TypeError because Loader is a required positional argument now. Use yaml.safe_load for config and user-supplied text, and pass an explicit Loader only when you need a richer one.
