We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
strictly_equal
1 parent 64c9b63 commit 95b823dCopy full SHA for 95b823d
src/reactpy/core/hooks.py
@@ -597,9 +597,12 @@ def strictly_equal(x: Any, y: Any) -> bool:
597
598
# Compare the source code of lambda and local functions
599
if (
600
- hasattr(x, "__qualname__")
+ getattr(x, "__qualname__", "")
601
+ and getattr(y, "__qualname__", "")
602
and ("<lambda>" in x.__qualname__ or "<locals>" in x.__qualname__)
603
+ and ("<lambda>" in y.__qualname__ or "<locals>" in y.__qualname__)
604
and hasattr(x, "__code__")
605
+ and hasattr(y, "__code__")
606
):
607
if x.__qualname__ != y.__qualname__:
608
return False
0 commit comments