Skip to content

Commit

Permalink
<>[PyutClass]: <Type definition Syntactic Sugar💄>
Browse files Browse the repository at this point in the history
[Typing convenience]

[#4]
  • Loading branch information
Humberto Sanchez II committed Feb 3, 2024
1 parent 2c36fd7 commit e840bb3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/pyutmodelv2/PyutClass.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

from typing import Dict
from typing import List
from typing import NewType

from dataclasses import dataclass
from dataclasses import field

Expand Down Expand Up @@ -73,3 +77,9 @@ def __str__(self):

def __repr__(self):
return self.__str__()


PyutClassName = NewType('PyutClassName', str)

PyutClassList = NewType('PyutClassList', List[PyutClass])
PyutClassIndex = NewType('PyutClassIndex', Dict[PyutClassName, PyutClass])

0 comments on commit e840bb3

Please sign in to comment.