Files
chia-blockchain/tests/plotting/util.py
T
Kyle AltendorfandGitHub 3b084a165b configure isort to add the future annotations import (#13327)
* configure isort to add the future annotations import

* apply the new isort setting

* remove type ignores for new mypy (#13539)

https://pypi.org/project/mypy/0.981/

* another
2022-09-30 03:40:22 -05:00

14 lines
316 B
Python

from __future__ import annotations
from pathlib import Path
from typing import List
from chia.simulator.block_tools import get_plot_dir
def get_test_plots(sub_dir: str = "") -> List[Path]:
path = get_plot_dir()
if sub_dir != "":
path = path / sub_dir
return list(sorted(path.glob("*.plot")))