Skip to content

Commit fbefdde

Browse files
committed
refactor(random): clean up imports and type hints
- Remove duplicate logger definition - Add proper Self type hint for Python 3.11+ - Clean up redundant type checking imports - Improve code organization
1 parent 09d5bdb commit fbefdde

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/libtmux/test/random.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
TEST_SESSION_PREFIX,
1111
)
1212

13-
logger = logging.getLogger(__name__)
14-
1513
if t.TYPE_CHECKING:
1614
import sys
1715

@@ -24,12 +22,6 @@
2422

2523
logger = logging.getLogger(__name__)
2624

27-
if t.TYPE_CHECKING:
28-
import sys
29-
30-
if sys.version_info >= (3, 11):
31-
pass
32-
3325

3426
class RandomStrSequence:
3527
"""Factory to generate random string."""

0 commit comments

Comments
 (0)