Skip to content

Refactor: replace exec() with safe dynamic method generation via setattr#1

Open
Benziza wants to merge 1 commit intoMohammedcha:mainfrom
Benziza:fix/dynamic-methods
Open

Refactor: replace exec() with safe dynamic method generation via setattr#1
Benziza wants to merge 1 commit intoMohammedcha:mainfrom
Benziza:fix/dynamic-methods

Conversation

@Benziza
Copy link

@Benziza Benziza commented Oct 6, 2025

  • exec() prevents reliable static analysis (mypy, linters) and is harder to review.
  • The new approach preserves the public API (e.g., style("x").red().bold() still works) while making the implementation explicit and testable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant