Skip to content

Commit

Permalink
Fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
haiiliin committed Dec 7, 2024
1 parent dbd87b6 commit f0d7085
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions src/abaqus/Interaction/InteractionModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
from ..Interaction.ElasticFoundation import ElasticFoundation
from ..Interaction.FilmCondition import FilmCondition
from ..Interaction.FluidCavity import FluidCavity
from ..Interaction.FluidExchange import FluidExchange
from ..Interaction.FluidInflator import FluidInflator
from ..Interaction.FluidExchange import FluidExchange as FluidExchangeType
from ..Interaction.FluidInflator import FluidInflator as FluidInflatorType
from ..Interaction.IncidentWave import IncidentWave
from ..Interaction.InitializationAssignment import InitializationAssignment
from ..Interaction.MainSecondaryAssignment import MainSecondaryAssignment
Expand Down Expand Up @@ -1403,7 +1403,7 @@ def FluidExchange(
definition: Literal[C.BETWEEN_CAVITIES, C.TO_ENVIRONMENT] = TO_ENVIRONMENT,
secondCavity: str = "",
exchangeArea: float = 1,
) -> FluidExchange:
) -> FluidExchangeType:
"""This method creates an FluidExchange object.
.. note::
Expand Down Expand Up @@ -1436,7 +1436,7 @@ def FluidExchange(
FluidExchange
A FluidExchange object.
"""
self.interactions[name] = interaction = FluidExchange(
self.interactions[name] = interaction = FluidExchangeType(
name,
createStepName,
firstCavity,
Expand All @@ -1452,7 +1452,7 @@ def FluidExchangeActivation(
self,
name: str,
createStepName: str,
exchanges: List[FluidExchange],
exchanges: List[FluidExchangeType],
amplitude: str,
isBlockage: Boolean = OFF,
isOnlyOutflow: Boolean = OFF,
Expand Down Expand Up @@ -1511,7 +1511,7 @@ def FluidInflator(
createStepName: str,
cavity: str,
interactionProperty: str,
) -> FluidInflator:
) -> FluidInflatorType:
"""This method creates a FluidInflator object.
.. note::
Expand Down Expand Up @@ -1543,7 +1543,7 @@ def FluidInflator(
-------
A FluidInflator object.
"""
self.interactions[name] = interaction = FluidInflator(
self.interactions[name] = interaction = FluidInflatorType(
name,
createStepName,
cavity,
Expand All @@ -1556,7 +1556,7 @@ def FluidInflatorActivation(
self,
name: str,
createStepName: str,
inflators: List[FluidInflator],
inflators: List[FluidInflatorType],
inflationTimeAmplitude: str = "",
massFlowAmplitude: str = "",
):
Expand Down Expand Up @@ -2403,7 +2403,7 @@ def WearProperty(
name: str,
fricCoefDependency: Boolean = OFF,
unitlessWearCoefDependency: Boolean = OFF,
referenceStress: float = None,
referenceStress: float = 0.0,
surfaceWearDistanceDependency: Boolean = OFF,
temperatureDependency: Boolean = OFF,
contactPressureDependency: Boolean = OFF,
Expand Down
2 changes: 1 addition & 1 deletion src/abaqus/Interaction/WearProperty.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(
name: str,
fricCoefDependency: Boolean = OFF,
unitlessWearCoefDependency: Boolean = OFF,
referenceStress: float = None,
referenceStress: float = 0.0,
surfaceWearDistanceDependency: Boolean = OFF,
temperatureDependency: Boolean = OFF,
contactPressureDependency: Boolean = OFF,
Expand Down
8 changes: 4 additions & 4 deletions src/abaqus/PathAndProbe/FreeBody.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from abqpy.decorators import abaqus_class_doc, abaqus_method_doc

from ..UtilityAndView.abaqusConstants import CENTROID, NORMAL_TANGENTIAL
from ..UtilityAndView.abaqusConstants import abaqusConstants as C
from ..UtilityAndView.abaqusConstants import abaqusConstants as C, Boolean, OFF


@abaqus_class_doc
Expand Down Expand Up @@ -148,9 +148,9 @@ def FreeBodyFromNodesElements(
@abaqus_method_doc
def getFreeBodyData(
self,
step: int = None,
frame: int = None,
allActiveStepFrame: bool = False,
step: int = 0,
frame: int = 0,
allActiveStepFrame: Boolean = OFF,
) -> Tuple[Tuple[Dict, ...], ...]:
"""This method returns the force and moment data of a FreeBody object.
Expand Down

0 comments on commit f0d7085

Please sign in to comment.