Skip to content

Commit

Permalink
馃悰 FIX: Remove unnecessary assert (#659)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Sewell <chrisj_sewell@hotmail.com>
Fixes #657
  • Loading branch information
n-peugnet committed Jan 4, 2023
1 parent 8ea5398 commit 9a4de68
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion myst_parser/config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,6 @@ def read_topmatter(text: Union[str, Iterator[str]]) -> Optional[Dict[str, Any]]:
top_matter.append(line.rstrip() + "\n")
try:
metadata = yaml.safe_load("".join(top_matter))
assert isinstance(metadata, dict)
except (yaml.parser.ParserError, yaml.scanner.ScannerError) as err:
raise TopmatterReadError("Malformed YAML") from err
if not isinstance(metadata, dict):
Expand Down

0 comments on commit 9a4de68

Please sign in to comment.