• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

haiiliin / abqpy / 5910646359

19 Aug 2023 09:25AM UTC coverage: 83.152% (-0.1%) from 83.3%
5910646359

push

github

web-flow
[typing] Fix wrong mypy typing annotations (backport #4879) (#4880)

* [typing] Fix wrong mypy typing annotations (#4879)

* Fix mypy abqpy issues

* Mypy typings

* Update typing annotations for SymbolicConstants

* Fixing typings

* Add future annotations

* Use list/dict/tuple instead of List/Dict/Tuple

* Fix Optional typings

* Add future annotations

* Update xyPlot.py

* Update .pre-commit-config.yaml

* Fix list typings for Python 3.7/3.8

* Fixing more typings

* Fix more typings

* Update conf.py

* Update .pre-commit-config.yaml

* Revert "Update conf.py"

This reverts commit e8449ae0c.

* Update conf.py

* Revert "Update conf.py"

This reverts commit 3be44d0a5.

* Docs Not -W

(cherry picked from commit d7be4b472)

# Conflicts:
#	src/abaqus/BasicGeometry/Cell.py
#	src/abaqus/BasicGeometry/CellArray.py
#	src/abaqus/BasicGeometry/Face.py
#	src/abaqus/BasicGeometry/FaceArray.py
#	src/abaqus/BoundaryCondition/BoundaryConditionModel.py
#	src/abaqus/BoundaryCondition/SubmodelBC.py
#	src/abaqus/Datum/DatumCsys.py
#	src/abaqus/DisplayGroup/LeafFromConstraintNames.py
#	src/abaqus/EngineeringFeature/DataImperfection.py
#	src/abaqus/EngineeringFeature/EngineeringFeature.py
#	src/abaqus/EngineeringFeature/EngineeringFeatureBase.py
#	src/abaqus/EngineeringFeature/FileImperfection.py
#	src/abaqus/EngineeringFeature/InputImperfection.py
#	src/abaqus/FieldReport/FieldReportSession.py
#	src/abaqus/FieldReport/writeFieldReport.py
#	src/abaqus/Interaction/ContactExp.py
#	src/abaqus/Interaction/ContactStd.py
#	src/abaqus/Interaction/ExpInitialization.py
#	src/abaqus/Interaction/FluidInflatorProperty.py
#	src/abaqus/Interaction/FluidInflatorState.py
#	src/abaqus/Interaction/InteractionContactInitializationModel.py
#	src/abaqus/Interaction/InteractionModel.py
#	src/abaqus/Interaction/InteractionPropertyModel.py
#	src/abaqus/Interaction/SurfaceCrushTriggerAssignment.py
#... (continued)

3258 of 3258 new or added lines in 713 files covered. (100.0%)

24089 of 28970 relevant lines covered (83.15%)

0.83 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/abaqus/Load/SubstructureLoadState.py
1
from __future__ import annotations
×
2

3
from abqpy.decorators import abaqus_class_doc
×
4

5
from ..UtilityAndView.abaqusConstants import SymbolicConstant
×
6
from .LoadState import LoadState
×
7

8

9
@abaqus_class_doc
×
10
class SubstructureLoadState(LoadState):
×
11
    """The SubstructureLoadState object stores the propagating data for a substructure load in a step. One
12
    instance of this object is created internally by the SubstructureLoad object for each step. The instance is
13
    also deleted internally by the SubstructureLoad object. The SubstructureLoadState object has no constructor
14
    or methods. The SubstructureLoadState object is derived from the LoadState object.
15

16
    .. note::
17
        This object can be accessed by::
18

19
            import load
20
            mdb.models[name].steps[name].loadStates[name]
21

22
        The corresponding analysis keywords are:
23

24
        - SLOAD
25
    """
26

27
    #: A tuple of strings specifying the names of the load cases to be activated.
28
    loadCaseNames: tuple = ()
×
29

30
    #: A Float or a Complex specifying the load magnitude.
31
    magnitude: float | None = None
×
32

33
    #: A SymbolicConstant specifying the propagation state of the load magnitude. Possible
34
    #: values are UNSET, SET, UNCHANGED, and MODIFIED.
35
    magnitudeState: SymbolicConstant
×
36

37
    #: A SymbolicConstant specifying the propagation state of the **amplitude** member. Possible
38
    #: values are UNSET, SET, UNCHANGED, and FREED.
39
    amplitudeState: SymbolicConstant
×
40

41
    #: A SymbolicConstant specifying the propagation state of the LoadState object. Possible
42
    #: values are:
43
    #:
44
    #: - NOT_YET_ACTIVE
45
    #: - CREATED
46
    #: - PROPAGATED
47
    #: - MODIFIED
48
    #: - DEACTIVATED
49
    #: - NO_LONGER_ACTIVE
50
    #: - TYPE_NOT_APPLICABLE
51
    #: - INSTANCE_NOT_APPLICABLE
52
    #: - BUILT_INTO_BASE_STATE
53
    status: SymbolicConstant
×
54

55
    #: A String specifying the name of the amplitude reference. The String is empty if the load
56
    #: has no amplitude reference.
57
    amplitude: str = ""
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc