reflex/tests/units/components
Thomas Brandého c07eb2a6a0
[ENG-3943]type check for event handler if spec arg are typed (#4046)
* type check for event handler if spec arg are typed

* fix the typecheck logic

* rearrange logic pieces

* add try except

* add try except around compare

* change form and improve type checking

* print key instead

* dang it darglint

* change wording

* add basic test to cover it

* add a slightly more complicated test

* challenge it a bit by doing small capital list

* add multiple argspec

* fix slider event order

* i hate 3.9

* add note for UnionType

* move function to types

* add a test for type hint is subclass

* make on submit dict str any

* add testing for dict cases

* add check against any

* accept dict str str

* bruh i used i twice

* escape strings and print actual error message

* disable the error and print deprecation warning instead

* disable tests

* fix doc message

---------

Co-authored-by: Khaleel Al-Adhami <khaleel.aladhami@gmail.com>
2024-10-31 12:45:28 -07:00
..
base add type hinting to events (#4145) 2024-10-14 08:44:31 -07:00
core use $ syntax (#4237) 2024-10-24 14:34:39 -07:00
datadisplay [ENG-3848][ENG-3861]Shiki Code block Experimental (#4030) 2024-10-22 17:01:34 +00:00
el add workflow to check dependencies on release branch (#4050) 2024-10-07 20:57:02 +02:00
forms components as literal vars (#4223) 2024-10-30 11:31:28 -07:00
graphing reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
layout reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
lucide reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
media reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
radix reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
recharts reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
typography reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
__init__.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_component_future_annotations.py add type hinting to events (#4145) 2024-10-14 08:44:31 -07:00
test_component_state.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_component.py [ENG-3943]type check for event handler if spec arg are typed (#4046) 2024-10-31 12:45:28 -07:00
test_props.py [ENG-3892]Shiki codeblock support decorations (#4234) 2024-10-31 09:33:49 +00:00
test_tag.py update ruff to latest version (#4081) 2024-10-07 23:52:36 +02:00