Update speckle_type of SectionProfile to match C#, update type hints with C# Enum values to int.

For the SectionProfile, a separate static variable e.g. STRUCTURAL_PROFILE could be created later, I now just made an easy fix.
For the enumeration attributes, I believe they should be integer, as e.g. Revit pushes them as integers, not strings.
This commit is contained in:
908599
2023-01-16 16:01:33 +01:00
parent 7e1bec1aba
commit 4f93ddcaf3
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ class PendingStreamCollaborator(BaseModel):
class Activity(BaseModel):
actionType: Optional[str]
actionType: Optional[int]
info: Optional[dict]
userId: Optional[str]
streamId: Optional[str]
+1 -1
View File
@@ -6,5 +6,5 @@ from specklepy.objects.geometry import Plane
class Axis(Base, speckle_type="Objects.Structural.Geometry.Axis"):
name: Optional[str] = None
axisType: Optional[str] = None
axisType: Optional[int] = None
plane: Optional[Plane] = None
@@ -90,7 +90,7 @@ class Property(Base, speckle_type=STRUCTURAL_PROPERTY):
name: Optional[str] = None
class SectionProfile(Base, speckle_type=STRUCTURAL_PROPERTY + ".SectionProfile"):
class SectionProfile(Base, speckle_type=STRUCTURAL_PROPERTY + ".Profiles.SectionProfile"):
name: Optional[str] = None
shapeType: Optional[ShapeType] = None
area: float = 0.0