Lazily load the resource files into memory the first time they are needed
()
| 31 | |
| 32 | @lru_cache(None) |
| 33 | def _load_static_files(): |
| 34 | """Lazily load the resource files into memory the first time they are needed""" |
| 35 | return [ |
| 36 | files(package).joinpath(resource).read_text(encoding="utf-8") |
| 37 | for package, resource in STATIC_FILES |
| 38 | ] |
| 39 | |
| 40 | |
| 41 | def short_data_repr_html(array) -> str: |
no outgoing calls
no test coverage detected
searching dependent graphs…