mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-09-28 01:56:38 -04:00
more mypy platforms in ci (#12299)
* more mypy platforms in ci * check not checks * oh yeah, activate... * add 3.11 * adjust job names * actually use the right python version for install * adjust for 3.7 hinting support * exclude macos 3.7 and macos arm 3.8 * back to 3.8 for now * major_dot_minor * oops * move ignore comments for 3.7 * and more
This commit is contained in:
@@ -2,6 +2,7 @@ from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
import cProfile
|
||||
import sys
|
||||
from contextlib import contextmanager
|
||||
from dataclasses import dataclass
|
||||
from subprocess import check_call
|
||||
@@ -28,6 +29,9 @@ NUM_PEERS = 5
|
||||
|
||||
@contextmanager
|
||||
def enable_profiler(profile: bool, name: str) -> Iterator[None]:
|
||||
if sys.version_info < (3, 8):
|
||||
raise Exception(f"Python 3.8 or higher required, running with: {sys.version}")
|
||||
|
||||
if not profile:
|
||||
yield
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user