@@ -23,9 +23,9 @@ def _replace(name: str, replacement: str, document: str) -> str:
2323
2424
2525def update_dynamic_readme (
26- versions : " list[BuildVersion]" ,
27- python_versions : " list[SupportedVersion]" ,
28- node_versions : " list[SupportedVersion]" ,
26+ versions : list [BuildVersion ],
27+ python_versions : list [SupportedVersion ],
28+ node_versions : list [SupportedVersion ],
2929 dry_run : bool = False ,
3030) -> None :
3131 """Read out current README, format fresh README, write back possible changes"""
@@ -44,9 +44,9 @@ def update_dynamic_readme(
4444
4545
4646def format_readme (
47- versions : " list[BuildVersion]" ,
48- python_versions : " list[SupportedVersion]" ,
49- node_versions : " list[SupportedVersion]" ,
47+ versions : list [BuildVersion ],
48+ python_versions : list [SupportedVersion ],
49+ node_versions : list [SupportedVersion ],
5050 readme : str ,
5151) -> str :
5252 """Format fresh README based on passed in version. Replaces the whole table with new versions."""
@@ -57,17 +57,17 @@ def format_readme(
5757 return _replace ("SUPPORTED_VERSIONS" , supported_versions_table , readme_fresh )
5858
5959
60- def format_tags (versions : " list[BuildVersion]" ) -> str :
60+ def format_tags (versions : list [BuildVersion ]) -> str :
6161 headings = ["Tag" , "Python version" , "Node.js version" , "Distro" ]
6262 rows = [[f"`{ v .key } `" , v .python_canonical , v .nodejs_canonical , v .distro ] for v in versions ]
6363 return _format_md_table (headings , rows )
6464
6565
6666def format_supported_versions (
67- python_versions : " list[SupportedVersion]" ,
68- node_versions : " list[SupportedVersion]" ,
67+ python_versions : list [SupportedVersion ],
68+ node_versions : list [SupportedVersion ],
6969) -> str :
70- def _as_rows (versions : " list[SupportedVersion]" ) -> list [list [str ]]:
70+ def _as_rows (versions : list [SupportedVersion ]) -> list [list [str ]]:
7171 return [[ver .version , ver .start , ver .end ] for ver in sorted (versions , key = lambda x : x .start , reverse = True )]
7272
7373 python_table = _format_md_table (["Python version" , "Start" , "End" ], _as_rows (python_versions ))
0 commit comments