Merge pull request 'Adding variation for compatibility with Python3 < 3.10' (#10) from ViktorWalter/pyveles:py39_compat into master
Reviewed-on: #10
This commit was merged in pull request #10.
	This commit is contained in:
		| @@ -3,8 +3,10 @@ from dataclasses import dataclass | ||||
| from typing import Dict, Any | ||||
| 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 used to track readout errors""" | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user