(package: str, resource: str)
| 17 | |
| 18 | |
| 19 | def _open_text(package: str, resource: str) -> TextIO: |
| 20 | return ( |
| 21 | importlib.resources.files(package) |
| 22 | .joinpath(resource) |
| 23 | .open("r", encoding="utf-8") |
| 24 | ) |
| 25 | |
| 26 | |
| 27 | def _open_binary(package: str, resource: str) -> BinaryIO: |