-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This refactor gets us data-typing for non-chapters (e.g., prefaces, but mostly appendixes) with subparts for free, and also cleans the code up. We move the logic to apply the chapter-wide data-types to its own function and allow the (new/old) process_chapter_soup function to take either a Path (single-file chapter) or a list (a chapter with subfiles). **NOTE**: We have to import `Union` from `typing` to support hinting for this; Python 3.10 gives us a much cleaner `|` operator, but Atlas currently is on 3.9. Update: parallelism in the initial if-check in process_chapter_soup
- Loading branch information
1 parent
35465f6
commit 5bd48b3
Showing
2 changed files
with
85 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters