Add explicit type annotation to version_info and reformat
This commit is contained in:
		| @@ -60,13 +60,15 @@ from .interactions import * | ||||
| from .components import * | ||||
| from .threads import * | ||||
|  | ||||
| class VersionInfo(NamedTuple): | ||||
| 	major: int | ||||
| 	minor: int | ||||
| 	micro: int | ||||
| 	releaselevel: Literal["alpha", "beta", "candidate", "final"] | ||||
| 	serial: int | ||||
|  | ||||
| version_info = VersionInfo(major=2, minor=0, micro=0, releaselevel='alpha', serial=0) | ||||
| class VersionInfo(NamedTuple): | ||||
|     major: int | ||||
|     minor: int | ||||
|     micro: int | ||||
|     releaselevel: Literal["alpha", "beta", "candidate", "final"] | ||||
|     serial: int | ||||
|  | ||||
|  | ||||
| version_info: VersionInfo = VersionInfo(major=2, minor=0, micro=0, releaselevel='alpha', serial=0) | ||||
|  | ||||
| logging.getLogger(__name__).addHandler(logging.NullHandler()) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user