Skip to content

Commit 0ceb780

Browse files
fix: dict[...] -> Dict[...] for Python 3.8 compatibility (#547)
1 parent 57d4733 commit 0ceb780

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

linodecli/overrides.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
This allows us to easily alter per-command outputs, etc. without making
44
large changes to the OpenAPI spec.
55
"""
6+
from typing import Dict
67

78
from rich.align import Align
89
from rich.console import Console
@@ -102,7 +103,7 @@ def linode_types_with_region_prices(
102103
return False
103104

104105

105-
def format_prices(prices, data: dict[str, any]) -> any:
106+
def format_prices(prices, data: Dict[str, any]) -> any:
106107
"""
107108
Format nested price entry.
108109
"""
@@ -111,7 +112,7 @@ def format_prices(prices, data: dict[str, any]) -> any:
111112
return str(data[price_headers[0]][price_headers[1]])
112113

113114

114-
def format_region_prices(data: dict[str, any]) -> any:
115+
def format_region_prices(data: Dict[str, any]) -> any:
115116
"""
116117
Format nested region price entry into a sub-table.
117118
"""

0 commit comments

Comments
 (0)