752752
753753class AddCoords :
754754 def add_cord2r (self , cid : int ,
755- origin : Optional [Union [ list [float ], NDArray3float ] ],
756- zaxis : Optional [Union [ list [float ], NDArray3float ] ],
757- xzplane : Optional [Union [ list [float ], NDArray3float ] ],
755+ origin : Optional [list [float ] | NDArray3float ],
756+ zaxis : Optional [list [float ] | NDArray3float ],
757+ xzplane : Optional [list [float ] | NDArray3float ],
758758 rid : int = 0 , setup : bool = True , comment : str = '' ) -> CORD2R :
759759 """
760760 Creates the CORD2R card, which defines a rectangular coordinate
@@ -782,9 +782,9 @@ def add_cord2r(self, cid: int,
782782 return coord
783783
784784 def add_cord2c (self , cid : int ,
785- origin : Optional [Union [ list [float ], NDArray3float ] ],
786- zaxis : Optional [Union [ list [float ], NDArray3float ] ],
787- xzplane : Optional [Union [ list [float ], NDArray3float ] ],
785+ origin : Optional [list [float ] | NDArray3float ],
786+ zaxis : Optional [list [float ] | NDArray3float ],
787+ xzplane : Optional [list [float ] | NDArray3float ],
788788 rid : int = 0 , setup : bool = True , comment : str = '' ) -> CORD2C :
789789 """
790790 Creates the CORD2C card, which defines a cylindrical coordinate
@@ -812,9 +812,9 @@ def add_cord2c(self, cid: int,
812812 return coord
813813
814814 def add_cord2s (self , cid : int ,
815- origin : Optional [Union [ list [float ], NDArray3float ] ],
816- zaxis : Optional [Union [ list [float ], NDArray3float ] ],
817- xzplane : Optional [Union [ list [float ], NDArray3float ] ],
815+ origin : Optional [list [float ] | NDArray3float ],
816+ zaxis : Optional [list [float ] | NDArray3float ],
817+ xzplane : Optional [list [float ] | NDArray3float ],
818818 rid : int = 0 , setup : bool = True , comment : str = '' ) -> CORD2S :
819819 """
820820 Creates the CORD2C card, which defines a spherical coordinate
@@ -2842,7 +2842,7 @@ def add_pcompg(self, pid, global_ply_ids, mids, thicknesses, thetas=None, souts=
28422842
28432843
28442844class Add3dElements :
2845- def add_ctetra (self , eid , pid , nids , comment = '' ) -> Union [ CTETRA4 , CTETRA10 ] :
2845+ def add_ctetra (self , eid , pid , nids , comment = '' ) -> CTETRA4 | CTETRA10 :
28462846 """
28472847 Creates a CTETRA4/CTETRA10
28482848
@@ -2865,7 +2865,7 @@ def add_ctetra(self, eid, pid, nids, comment='') -> Union[CTETRA4, CTETRA10]:
28652865 self ._add_methods ._add_element_object (elem )
28662866 return elem
28672867
2868- def add_cpyram (self , eid , pid , nids , comment = '' ) -> Union [ CPYRAM5 , CPYRAM13 ] :
2868+ def add_cpyram (self , eid , pid , nids , comment = '' ) -> CPYRAM5 | CPYRAM13 :
28692869 """
28702870 Creates a CPYRAM5/CPYRAM13
28712871
@@ -5526,7 +5526,7 @@ def add_dresp1(self, dresp_id: int, label: str,
55265526 response_type : str , property_type : str , region : int ,
55275527 atta : Optional [int | float | str ],
55285528 attb : Optional [int | float | str ],
5529- atti : list [Union [ int , float , str ] ],
5529+ atti : list [int | float | str ],
55305530 validate : bool = True , comment : str = '' ) -> DRESP1 :
55315531 """
55325532 Creates a DRESP1 card.
@@ -6434,11 +6434,11 @@ def add_point(self, nid: int, xyz: Any, cp: int=0, comment: str='') -> POINT:
64346434 #self._add_load_object(load)
64356435 #return load
64366436
6437- def add_param (self , key : str , values : list [Union [ int , float , str ] ],
6437+ def add_param (self , key : str , values : list [int | float | str ],
64386438 comment : str = '' ) -> PARAM :
64396439 return self ._add_param_nastran (key , values , comment = comment )
64406440
6441- def _add_param_nastran (self , key : str , values : list [Union [ int , float , str ] ],
6441+ def _add_param_nastran (self , key : str , values : list [int | float | str ],
64426442 comment : str = '' ) -> PARAM :
64436443 """
64446444 Creates a PARAM card
@@ -6478,7 +6478,7 @@ def add_mdlprm(self, mdlprm_dict: dict[str, int | float],
64786478 return mdlprm
64796479
64806480
6481- def _add_param_mystran (self , key : str , values : list [Union [ int , float , str ] ],
6481+ def _add_param_mystran (self , key : str , values : list [int | float | str ],
64826482 comment : str = '' ) -> PARAM_MYSTRAN :
64836483 """
64846484 Creates a PARAM card
@@ -6497,7 +6497,7 @@ def _add_param_mystran(self, key: str, values: list[Union[int, float, str]],
64976497 self ._add_methods ._add_param_object (param )
64986498 return param
64996499
6500- def _add_param_nasa95 (self , key : str , values : list [Union [ int , float , str ] ],
6500+ def _add_param_nasa95 (self , key : str , values : list [int | float | str ],
65016501 comment : str = '' ) -> PARAM_NASA95 :
65026502 """
65036503 Creates a PARAM card
0 commit comments