CommentedBase.ca and .lc expose unknown metadata types
Implemented in merge request #17. The change gives TaggedScalar.value and its string-like methods precise types and makes default construction establish a valid string state. The strict Pyright reproducer and full Python 3.9/3.14 test suites pass.
Type TaggedScalar string values
Type TaggedScalar string values (ticket 571)
TaggedScalar.value has an unknown type
Fixes ticket #564. YAML.load now accepts strings, bytes, pathlib.Path instances, and structural readable streams returning strings or bytes. YAML.dump accepts pathlib.Path instances or structural writable streams for strings or bytes. Its transform callback is typed as Callable[[str], str]. The data argument and load return remain Any because custom representers and constructors can handle arbitrary Python objects. The protocol definitions are guarded by TYPE_CHECKING, avoiding runtime protocol construction....
Fix Pyright types for YAML.load and YAML.dump
Fixed in merge request #15. The change selects double-quoted style for values containing NEL, allowing the existing \N escape to preserve the value. The regression covers safe, round-trip, and unsafe modes; the full suite passes (449 passed, 4 skipped, 22 xfailed).