python3.6 doesn't have native dataclasses!

This commit is contained in:
jesopo 2020-06-21 18:47:45 +01:00
parent 83b31b6b2b
commit c32b4bdd62
1 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,7 @@
from dataclasses import dataclass
@dataclass
class Name(object):
normal: str
folded: str
def __init__(self,
normal: str,
folded: str):
self.normal = normal
self.folded = folded