Day 12, Python: yes, this is *totally* how type hinting works

This commit is contained in:
akp 2020-12-12 20:27:07 +00:00
parent 7b435c3e05
commit a83343a22f
No known key found for this signature in database
GPG key ID: D3E7EAA31B39637E

View file

@ -3,7 +3,7 @@ from typing import List, Tuple
class Instruction:
action: str
magnitude: str
magnitude: int
raw: str
def __init__(self, instruction: str) -> None: