Skip to content
This repository was archived by the owner on Jul 13, 2024. It is now read-only.

Update annotations for ids_refactor.py#5

Merged
wufhex merged 1 commit into
wufhex:mainfrom
therealOri:patch-1
Jul 13, 2024
Merged

Update annotations for ids_refactor.py#5
wufhex merged 1 commit into
wufhex:mainfrom
therealOri:patch-1

Conversation

@therealOri

Copy link
Copy Markdown
Contributor

Adds support for handling annotations.

Adds support for handling annotations.
@therealOri

Copy link
Copy Markdown
Contributor Author

I don't really know how complex or to what extent you want to support annotations, but this update seems to work with obfuscating and running the following example code that has annotations.

def add_numbers(a: int, b: int) -> int:
    return a + b

def concatenate_strings(strings: list[str]) -> str:
    return ' '.join(strings)

num1: int = 5
num2: int = 10

result: int = add_numbers(num1, num2)
print(f"The sum of {num1} and {num2} is {result}")

string_list: list[str] = ["Hello", "world"]
concatenated_string: str = concatenate_strings(string_list)
print(f"Concatenated string: {concatenated_string}")

I was able to obfuscate and run the code with no errors.



System & Info;

- Linux: Arch/Manjaro
- Kernel: Linux66
- Python: 3.12.4
- PyDelta: Latest/0.1.3

@wufhex wufhex merged commit 04f54d2 into wufhex:main Jul 13, 2024
@therealOri therealOri deleted the patch-1 branch July 13, 2024 13:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants