Skip to content

Commit 722f51a

Browse files
committed
Fix type annotation
1 parent 7888aa1 commit 722f51a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tools/cases_generator/uop_metadata_generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
DEFAULT_OUTPUT = ROOT / "Include/internal/pycore_uop_metadata.h"
2626

27-
def uop_cache_info(uop: Uop) -> str | None:
27+
def uop_cache_info(uop: Uop) -> list[str] | None:
2828
if uop.name == "_SPILL_OR_RELOAD":
2929
return None
3030
default = "{ -1, -1, -1 },\n"
@@ -41,7 +41,7 @@ def uop_cache_info(uop: Uop) -> str | None:
4141
high = inputs
4242
best = [ str(low if i < low else (high if high < i else i)) for i in range(MAX_CACHED_REGISTER+1) ]
4343

44-
return [ f".best = {{ {", ".join(best)} }},\n", ".entries = {\n", ] + entries + [ "},\n" ]
44+
return [ f".best = {{ {', '.join(best)} }},\n", ".entries = {\n", ] + entries + [ "},\n" ]
4545

4646
CACHING_INFO_DECL = """
4747
typedef struct _pyuop_tos_cache_entry {

0 commit comments

Comments
 (0)