Skip to content

Commit

Permalink
gef-extras can fail on older Python due to typing error (#103)
Browse files Browse the repository at this point in the history
`list[str]` isn't valid in older python versions, it should be
`List[str]`
  • Loading branch information
CuckooEXE authored Jan 31, 2024
1 parent 987f607 commit cac91ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/libc_function_args/tables/generator.py
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ def __get_function_name(l: str) -> str:
return _function_name


def __get_function_args(l: str) -> list[str]:
def __get_function_args(l: str) -> List[str]:
_function_args = " (".join(l.split(" (")[1:])
_function_args = ")".join(_function_args.split(")")[:-1])
_function_args = _function_args.split(",")
@@ -28,7 +28,7 @@ def __get_function_args(l: str) -> list[str]:


def generate_json_file(
function_dict: dict[str, list[str]], _params: list[str], outfile_name: pathlib.Path
function_dict: dict[str, List[str]], _params: List[str], outfile_name: pathlib.Path
) -> bool:
_dict = {}
for _key, _value in function_dict.items():

0 comments on commit cac91ae

Please sign in to comment.