chore: use from __future__ import annotations
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
These are utilities for the `/bin` scripts, not for the `cibuildwheel` program.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from io import StringIO
|
||||
from typing import Dict, List
|
||||
|
||||
from .typing import Protocol
|
||||
|
||||
@@ -15,7 +16,7 @@ class Printable(Protocol):
|
||||
...
|
||||
|
||||
|
||||
def dump_python_configurations(inp: Dict[str, Dict[str, List[Dict[str, Printable]]]]) -> str:
|
||||
def dump_python_configurations(inp: dict[str, dict[str, list[dict[str, Printable]]]]) -> str:
|
||||
output = StringIO()
|
||||
for header, values in inp.items():
|
||||
output.write(f"[{header}]\n")
|
||||
|
||||
Reference in New Issue
Block a user