@@ 229,9 229,10 @@ class YamlFrontmatterLoader(Loader):
return f.read()
f.seek(0)
loader = yaml.SafeLoader(f)
- loader.get_event()
- loader.get_event() # Skip stream and first document start, apparently no type stub available
- while not isinstance(e := loader.get_event(), yaml.DocumentStartEvent):
+ loader.get_event() # type: ignore[no-untyped-call]
+ loader.get_event() # type: ignore[no-untyped-call] # Skip stream and first document start, apparently no type stub available
+ while not isinstance(e := loader.get_event(), # type: ignore[no-untyped-call]
+ yaml.DocumentStartEvent):
pass
f.seek(e.end_mark.index)
return f.read().lstrip(b"\n")