forked from veles_labs/pyveles
Compare commits
2 Commits
master
...
py39_compa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
831a8eba82 | ||
| 757d5a1671 |
@@ -3,8 +3,10 @@ from dataclasses import dataclass
|
|||||||
from typing import Dict, Any
|
from typing import Dict, Any
|
||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
|
|
||||||
|
import sys
|
||||||
|
py310 = sys.version_info.minor >= 10 or sys.version_info.major > 3
|
||||||
|
|
||||||
@dataclass(slots=True)
|
@dataclass(**({"slots": True} if py310 else {}))
|
||||||
class ReadoutErrorCounter:
|
class ReadoutErrorCounter:
|
||||||
"""Class used to track readout errors"""
|
"""Class used to track readout errors"""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user