Skip to content

Commit 26e6651

Browse files
committed
Type hints via annotations
Signed-off-by: legobt <[email protected]>
1 parent 4626033 commit 26e6651

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

podman_compose.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
# https://docs.docker.com/compose/django/
88
# https://docs.docker.com/compose/wordpress/
99
# TODO: podman pod logs --color -n -f pod_testlogs
10+
from __future__ import annotations
11+
1012
import argparse
1113
import asyncio.subprocess
1214
import getpass
@@ -297,6 +299,7 @@ def norm_as_list(src):
297299
given a dictionary {key1:value1, key2: None} or list
298300
return a list of ["key1=value1", "key2"]
299301
"""
302+
dst: list[str]
300303
if src is None:
301304
dst = []
302305
elif isinstance(src, dict):
@@ -1659,7 +1662,7 @@ def dotenv_to_dict(dotenv_path):
16591662

16601663
class PodmanCompose:
16611664
def __init__(self):
1662-
self.podman = None
1665+
self.podman: Podman
16631666
self.podman_version = None
16641667
self.environ = {}
16651668
self.exit_code = None

0 commit comments

Comments
 (0)