Skip to content

Commit

Permalink
<Enhancement>[PyutClass]: <Simple Update>
Browse files Browse the repository at this point in the history
[Need more support from untanglepyut, oglio, and ogl]

[#1]
  • Loading branch information
Humberto Sanchez II committed Jan 12, 2024
1 parent bdb37b7 commit 618f74c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/pyutmodelv2/PyutClass.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from pyutmodelv2.PyutInterface import PyutInterface
from pyutmodelv2.PyutInterface import PyutInterfaces
from pyutmodelv2.PyutLinkedObject import PyutLinkedObject
from pyutmodelv2.enumerations.PyutDisplayMethods import PyutDisplayMethods

from pyutmodelv2.enumerations.PyutDisplayParameters import PyutDisplayParameters
from pyutmodelv2.enumerations.PyutStereotype import PyutStereotype
Expand Down Expand Up @@ -43,7 +44,9 @@ class PyutClass(PyutLinkedObject, PyutClassCommon):
stereotype: PyutStereotype = PyutStereotype.NO_STEREOTYPE
displayStereoType: bool = True

interfaces: PyutInterfaces = field(default_factory=pyutInterfacesFactory)
displayConstructor: PyutDisplayMethods = PyutDisplayMethods.UNSPECIFIED
displayDunderMethods: PyutDisplayMethods = PyutDisplayMethods.UNSPECIFIED
interfaces: PyutInterfaces = field(default_factory=pyutInterfacesFactory)

def __post_init__(self):
super().__post_init__()
Expand Down
2 changes: 1 addition & 1 deletion src/pyutmodelv2/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__: str = '2.0.1'
__version__: str = '2.1.0'
12 changes: 12 additions & 0 deletions src/pyutmodelv2/enumerations/PyutDisplayMethods.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

from enum import Enum


class PyutDisplayMethods(Enum):
"""
Use to indicate if a specific class wishes to display certain
dunder methods
"""
UNSPECIFIED = 'Unspecified'
DISPLAY = 'Display'
DO_NOT_DISPLAY = 'Do Not Display'

0 comments on commit 618f74c

Please sign in to comment.