Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raise error when passing a str(var) #4769

Conversation

adhami3310
Copy link
Member

No description provided.

Copy link

linear bot commented Feb 7, 2025

Copy link

codspeed-hq bot commented Feb 7, 2025

CodSpeed Performance Report

Merging #4769 will not alter performance

Comparing khaleel/eng-4609-component-should-throw-warning-if-stringified-var-is-passed (ac923f1) with main (85f07fc)

Summary

✅ 8 untouched benchmarks

@adhami3310 adhami3310 requested a review from Lendemor February 7, 2025 20:06
T = TypeVar("T")


def once(f: Callable[[], T]) -> Callable[[], T]:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we use the new global var cache for this so we have some control over evicting the values?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could, but i think we should keep this one away from global var cache until we improve that one (also unsure if we want to mix var with not vars)

tests/units/test_var.py Outdated Show resolved Hide resolved
tests/units/test_var.py Outdated Show resolved Hide resolved
adhami3310 and others added 2 commits February 10, 2025 14:25
Co-authored-by: Thomas Brandého <[email protected]>
Co-authored-by: Thomas Brandého <[email protected]>
@adhami3310 adhami3310 merged commit 372bd22 into main Feb 11, 2025
39 checks passed
@adhami3310 adhami3310 deleted the khaleel/eng-4609-component-should-throw-warning-if-stringified-var-is-passed branch February 11, 2025 19:39
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.

3 participants