From 6706b01eb83b812dc11689c6a72f987a16cb7269 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 29 Jun 2023 18:20:15 -0700 Subject: [PATCH] aider: Import the List class from the typing module in benchmark.py. # Context: USER: benchmark/benchmark.py:60:15: F821 undefined name 'List' ASSISTANT: To fix the undefined name 'List' error, we need to import the List class from the typing module. Here is the change: ```python benchmark/benchmark.py <<<<<<< ORIGINAL import datetime import json import os import random import re import shutil import subprocess import time from collections import defaultdict from json.decoder import JSONDecodeError from pathlib import Path ======= import datetime import json import os import random import re import shutil import subprocess import time from collections import defaultdict from json.decoder import JSONDecodeError from pathlib import Path from typing import List >>>>>>> UPDATED ``` --- benchmark/benchmark.py | 1 + 1 file changed, 1 insertion(+) diff --git a/benchmark/benchmark.py b/benchmark/benchmark.py index 2f691510b..f7142ef6e 100755 --- a/benchmark/benchmark.py +++ b/benchmark/benchmark.py @@ -11,6 +11,7 @@ import time from collections import defaultdict from json.decoder import JSONDecodeError from pathlib import Path +from typing import List import git import lox