@@ -214,7 +214,7 @@ def __init__(
214214 :type: :py:class:`TransactionHash`
215215 """
216216
217- self .bundle_hash : BundleHash = bundle_hash
217+ self .bundle_hash : Optional [ BundleHash ] = bundle_hash
218218 """
219219 The bundle hash, used to identify transactions that are part of the same
220220 bundle.
@@ -249,7 +249,7 @@ def __init__(
249249 :type: ``int``
250250 """
251251
252- self ._legacy_tag : Tag = legacy_tag
252+ self ._legacy_tag : Optional [ Tag ] = legacy_tag
253253 """
254254 A short message attached to the transaction.
255255
@@ -259,7 +259,7 @@ def __init__(
259259 :type: :py:class:`Tag`
260260 """
261261
262- self .nonce : Nonce = nonce
262+ self .nonce : Optional [ Nonce ] = nonce
263263 """
264264 Unique value used to increase security of the transaction hash.
265265
@@ -281,7 +281,7 @@ def __init__(
281281 :type: ``int``, unix timestamp in seconds.
282282 """
283283
284- self .current_index : int = current_index
284+ self .current_index : Optional [ int ] = current_index
285285 """
286286 The position of the transaction inside the bundle.
287287
@@ -295,7 +295,7 @@ def __init__(
295295 :type: ``int``
296296 """
297297
298- self .last_index : int = last_index
298+ self .last_index : Optional [ int ] = last_index
299299 """
300300 The index of the final transaction in the bundle.
301301
@@ -305,7 +305,7 @@ def __init__(
305305 :type: ``int``
306306 """
307307
308- self .trunk_transaction_hash : TransactionHash = trunk_transaction_hash
308+ self .trunk_transaction_hash : Optional [ TransactionHash ] = trunk_transaction_hash
309309 """
310310 The transaction hash of the next transaction in the bundle.
311311
@@ -319,7 +319,7 @@ def __init__(
319319 :type: :py:class:`TransactionHash`
320320 """
321321
322- self .branch_transaction_hash : TransactionHash = branch_transaction_hash
322+ self .branch_transaction_hash : Optional [ TransactionHash ] = branch_transaction_hash
323323 """
324324 An unrelated transaction that this transaction "approves".
325325
@@ -334,7 +334,7 @@ def __init__(
334334 :type: :py:class:`TransactionHash`
335335 """
336336
337- self .tag : Tag = tag
337+ self .tag : Optional [ Tag ] = tag
338338 """
339339 Optional classification tag applied to this transaction.
340340
@@ -343,7 +343,7 @@ def __init__(
343343 :type: :py:class:`Tag`
344344 """
345345
346- self .attachment_timestamp : int = attachment_timestamp
346+ self .attachment_timestamp : Optional [ int ] = attachment_timestamp
347347 """
348348 Estimated epoch time of the attachment to the tangle.
349349
@@ -352,21 +352,21 @@ def __init__(
352352 :type: ``int``, unix timestamp in milliseconds,
353353 """
354354
355- self .attachment_timestamp_lower_bound : int = attachment_timestamp_lower_bound
355+ self .attachment_timestamp_lower_bound : Optional [ int ] = attachment_timestamp_lower_bound
356356 """
357357 The lowest possible epoch time of the attachment to the tangle.
358358
359359 :type: ``int``, unix timestamp in milliseconds.
360360 """
361361
362- self .attachment_timestamp_upper_bound : int = attachment_timestamp_upper_bound
362+ self .attachment_timestamp_upper_bound : Optional [ int ] = attachment_timestamp_upper_bound
363363 """
364364 The highest possible epoch time of the attachment to the tangle.
365365
366366 :type: ``int``, unix timestamp in milliseconds.
367367 """
368368
369- self .signature_message_fragment : Fragment = signature_message_fragment
369+ self .signature_message_fragment : Optional [ Fragment ] = signature_message_fragment
370370 """
371371 "Signature/Message Fragment" (note the slash):
372372
0 commit comments