|
12 | 12 | import json |
13 | 13 | import logging |
14 | 14 | import pathlib as pl |
15 | | -import typing as tp |
16 | 15 |
|
17 | 16 | import allure |
18 | 17 | import hypothesis |
@@ -126,8 +125,8 @@ def _register_stake_pool_w_build( |
126 | 125 | vrf_vkey_file: clusterlib.FileType, |
127 | 126 | cold_key_pair: clusterlib.ColdKeyPair, |
128 | 127 | tx_name: str, |
129 | | - reward_account_vkey_file: tp.Optional[clusterlib.FileType] = None, |
130 | | - deposit: tp.Optional[int] = None, |
| 128 | + reward_account_vkey_file: clusterlib.FileType | None = None, |
| 129 | + deposit: int | None = None, |
131 | 130 | destination_dir: clusterlib.FileType = ".", |
132 | 131 | ) -> tuple[pl.Path, clusterlib.TxRawOutput]: |
133 | 132 | """Register a stake pool using a `transaction build` command. |
@@ -335,7 +334,7 @@ def _create_register_pool( |
335 | 334 | temp_dir: pl.Path, |
336 | 335 | pool_owners: list[clusterlib.PoolUser], |
337 | 336 | pool_data: clusterlib.PoolData, |
338 | | - request: tp.Optional[FixtureRequest] = None, |
| 337 | + request: FixtureRequest | None = None, |
339 | 338 | use_build_cmd: bool = False, |
340 | 339 | ) -> clusterlib.PoolCreationOutput: |
341 | 340 | """Create and register a stake pool. |
@@ -402,7 +401,7 @@ def _create_register_pool_delegate_stake_tx( |
402 | 401 | temp_template: str, |
403 | 402 | temp_dir: pl.Path, |
404 | 403 | pool_data: clusterlib.PoolData, |
405 | | - request: tp.Optional[FixtureRequest] = None, |
| 404 | + request: FixtureRequest | None = None, |
406 | 405 | use_build_cmd: bool = False, |
407 | 406 | ) -> clusterlib.PoolCreationOutput: |
408 | 407 | """Create and register a stake pool, delegate stake address - all in single TX. |
@@ -532,7 +531,7 @@ def _create_register_pool_tx_delegate_stake_tx( |
532 | 531 | temp_template: str, |
533 | 532 | temp_dir: pl.Path, |
534 | 533 | pool_data: clusterlib.PoolData, |
535 | | - request: tp.Optional[FixtureRequest] = None, |
| 534 | + request: FixtureRequest | None = None, |
536 | 535 | use_build_cmd: bool = False, |
537 | 536 | ) -> clusterlib.PoolCreationOutput: |
538 | 537 | """Create and register a stake pool - first TX; delegate stake address - second TX. |
|
0 commit comments