• 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/ConcCurrentState.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 ConcCurrentState(LoadState):
×
11
    """The ConcCurrentState object stores the propagating data of a concentrated current in a step. One instance
12
    of this object is created internally by the ConcCurrent object for each step. The instance is also deleted
13
    internally by the ConcCurrent object. The ConcCurrentState object has no constructor or methods. The
14
    ConcCurrentState 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
        - CECURRENT
25
    """
26

27
    #: A Float specifying the load magnitude.
28
    magnitude: float | None = None
×
29

30
    #: A SymbolicConstant specifying the propagation state of the load magnitude. Possible
31
    #: values are UNSET, SET, UNCHANGED, and FREED.
32
    magnitudeState: SymbolicConstant
×
33

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

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

52
    #: A String specifying the name of the amplitude reference. The String is empty if the load
53
    #: has no amplitude reference.
54
    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