@@ -18,9 +18,9 @@ class Inp(_object.McnpFile):
1818 def __init__ (
1919 self ,
2020 title : types .String ,
21- cells : types .Tuple [ inp .Cell | inp .Like ] ,
22- surfaces : types .Tuple [ inp .Surface ] ,
23- data : types .Tuple [ inp .Data ] ,
21+ cells : types .Tuple ( inp .Cell | inp .Like ) ,
22+ surfaces : types .Tuple ( inp .Surface ) ,
23+ data : types .Tuple ( inp .Data ) ,
2424 message : types .String = None ,
2525 other : types .String = None ,
2626 ):
@@ -43,9 +43,9 @@ def __init__(
4343 """
4444
4545 self .title : types .String = title
46- self .cells : types .Tuple [ inp .Cell | inp .Like | inp .Comment ] = cells
47- self .surfaces : types .Tuple [ inp .Surface | inp .Comment ] = surfaces
48- self .data : types .Tuple [ inp .Data | inp .Comment ] = data
46+ self .cells : types .Tuple ( inp .Cell | inp .Like | inp .Comment ) = cells
47+ self .surfaces : types .Tuple ( inp .Surface | inp .Comment ) = surfaces
48+ self .data : types .Tuple ( inp .Data | inp .Comment ) = data
4949 self .message : types .String = message
5050 self .other : types .String = other
5151
@@ -242,7 +242,7 @@ def cells(self, cells: list[str] | list[inp.Cell | inp.Like | inp.Comment]) -> N
242242 else :
243243 array .append (inp .Cell .from_mcnp (item ))
244244
245- cells = types .Tuple (array )
245+ cells = types .Tuple (inp . Card )( array )
246246
247247 if cells is None or None in cells :
248248 raise errors .InpError (errors .InpCode .SEMANTICS_FILE , cells )
@@ -289,7 +289,7 @@ def surfaces(self, surfaces: list[str] | list[inp.Surface | inp.Comment]) -> Non
289289 pass
290290 array .append (inp .Surface .from_mcnp (item ))
291291
292- surfaces = types .Tuple (array )
292+ surfaces = types .Tuple (inp . Card )( array )
293293
294294 if surfaces is None or None in surfaces :
295295 raise errors .InpError (errors .InpCode .SEMANTICS_FILE , surfaces )
@@ -337,7 +337,7 @@ def data(self, data: list[str] | list[inp.Data | inp.Comment]) -> None:
337337
338338 array .append (inp .Data .from_mcnp (item ))
339339
340- data = types .Tuple (array )
340+ data = types .Tuple (inp . Card )( array )
341341
342342 if data is None or None in data :
343343 raise errors .InpError (errors .InpCode .SEMANTICS_FILE , data )
0 commit comments