mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-11 10:56:14 +03:00
* 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
12 lines
347 B
Python
12 lines
347 B
Python
from __future__ import annotations
|
|
|
|
from pkg_resources import DistributionNotFound, get_distribution, resource_filename
|
|
|
|
try:
|
|
__version__ = get_distribution("chia-blockchain").version
|
|
except DistributionNotFound:
|
|
# package is not installed
|
|
__version__ = "unknown"
|
|
|
|
PYINSTALLER_SPEC_PATH = resource_filename("chia", "pyinstaller.spec")
|